- Code hints (for PHP, jQuery and the Drupal API)
- Code colouring (keep life simple)
- Basic syntax checking (not debugging)
- Integrated FTP and version control client.
Here's how to set up Dreamweaver:
- Find the Dreamweaver configuration files, MMDocumentTypes.xml (on OSX at /Applications/Adobe Dreamweaver CS5/Configuration/DocumentTypes) and Extensions.txt (on OSX at /Applications/Adobe Dreamweaver CS5/Configuration).
- In MMDocumentTypes.xml add file extensions to the PHP section (you'll need to scroll through the XML to find it):
<documenttype file="Default.php" id="PHP_MySQL" internaltype="Dynamic" macfileextension="php,php3,php4,php5,theme,module,engine,inc" servermodel="PHP MySQL" winfileextension="php,php3,php4,php5,theme,module,engine,inc" writebyteordermark="false">
</documenttype>
- In Extensions.txt change the line ending in
: All Documents
to includeMODULE,THEME,ENGINE,INFO,INC,INSTALL
and the line ending in: PHP Files
and append the following extensionsMODULE,INC,THEME,INSTALL
- Open Dreamweaver and edit your preferences:
- Code format: indent with 2 spaces; Tab size to 2
- File Types/Editors - open
.module, .theme, .engine, .info, .inc, .install
in code view (add to the list of existing extensions) - Create your site locally and set up in Dreamweaver (Site > Manage sites). Then open any page and it should recognize it's part of a bigger thing.... so go to Site > Site-Specific Code Hints and set the 'Structure' to Drupal. Use the same process to add specific libraries (see following video)
No comments:
Post a Comment