Skip to content
Curtin University
Web Development Blog

Making Dreamweaver autocomplete true and false instead of yes and no

By James Holmes February 3rd, 2010 Information Management 3 Comments »

Tags: , ,

By default Dreamweaver’s autocomplete for boolean flags in CFML gives you the option of yes or no, however the coding conventions of the CITS Business Systems Development Web team say that you should use true or false, because this is more consistent with other languages and more readable / understandable.

The autocomplete text Dreamweaver suggests for attributes like <cffunction output="... can be changed with a search and replace on the files in C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\TagLibraries\CFML (change the path depending on where you have Dreamweaver installed).

  • Find attriboption value="yes" and replace with attriboption value="true"
  • Find attriboption value="no" and replace with attriboption value="false"

Do it for every .vtm file in the folder and boolean attributes will now auto complete properly.

We’ve taken the liberty of doing this for you for Dreamweaver CS4 by attaching a zip file of the updated files. To do this we downloaded GSAR and ran the following two commands (in C:\Program Files\Adobe\Adobe Dreamweaver CS4\configuration\TagLibraries\CFML):

gsar -s"attriboption value=\"yes\"" -r"attriboption value=\"true\"" -i -o *.vtm

gsar -s"attriboption value=\"no\"" -r"attriboption value=\"false\"" -i -o *.vtm

  1. Lyndon Maydwell February 3, 2010 1:42pm

    Will this be overwritten every time you upgrade?

  2. James Holmes February 3, 2010 4:45pm

    Yeah, probably. I’ll look for an existing DW extension to see if something already does this; if not I might have to write one.

  3. John De Senio February 9, 2010 6:54pm

    In my opinion, you should back-up those Dreamweaver library files before modifying a library file to avoid the problem in the future.

Leave a Reply

Curtin Staff and Students can log in to make comments.