Configuring Dreamweaver to work with Drupal

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.

 

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options