File extension handling
Add Drupal file types to the Extensions.txt file so Dreamweaver knows how to handle them:
Documents and Settings -> [user] -> Application Data -> Adobe Dreamweaver -> Configuration
Edit: Extensions.txt To the first line add MODULE, PROFILE, INFO:
HTM,HTML,SHTM,SHTML, ... ,TXT,PHP,PHP3,PHP4,PHP5,MODULE,PROFILE,INFO,JSP,WML,TPL, ... ,MASTER: All Documents
To the PHP Files line add MODULE,PROFILE,INC like so:
PHP,PHP3,PHP4,PHP5,TPL,MODULE,PROFILE,INC: PHP Files
Syntax highlighting
Add the Drupal file types to MMDocumentTypes.xml do Dreamweaver knows how to format them:
Program Files -> Adobe -> Adobe Dreamweaver -> configuration -> DocumentTypes
Edit: MMDocumentTypes.xml
Find the line with the declaration for PHP_MySQL and add module,profile,inc:
id="PHP_MySQL" ... winfileextension="php,php3,php4,php5,module,inc,profile"
...and formatting
Change the code formatting preferences to use Drupal coding standards, ie. 2 spaces for indenting.
Edit -> Preferences, and select Code Format.
Set the indent option and for 2 spaces.
Set the Tab size to 2.
Submitted by Chris Herberte on Thu, 2008-12-18 08:58

Post new comment