Operation Manual

287
USING DREAMWEAVER
Working with page code
Last updated 3/28/2012
Writing and editing code
Code hints
The code hints feature helps you insert and edit code quickly and without mistakes. As you type characters in Code
view, you see a list of candidates that automatically complete your entry. For example, when you type the first
characters of a tag, attribute, or CSS property name, you see a list of options beginning with those characters. This
feature simplifies the insertion and editing of code. You can also use it to see the available attributes for a tag, the
available parameters for a function, or the available methods for an object.
Code hints are available for several kinds of code. When you type the beginning character of a particular code type,
you see a list of appropriate candidates. For example, to display a list of code hints for HTML tag names, type a right
angle bracket (<). Similarly, to display JavaScript code hinting, type a period (dot operator) after an object.
For best results, especially when using code hints for functions and objects, set the Delay option in the Code Hints
preferences dialog box to 0 seconds.
The code hinting feature also recognizes custom JavaScript classes that are not built in to the language. You can write
these custom classes yourself or add them through third-party libraries like Prototype.
The list of code hints disappears when you press Backspace (Windows) or Delete (Macintosh).
For a video tutorial on code hinting, see www.adobe.com/go/lrvid4048_dw.
For a video overview from the Dreamweaver engineering team about JavaScript support in Dreamweaver, see
www.adobe.com/go/dw10javascript.
Supported languages and technologies
Dreamweaver supports code hinting for the following languages and technologies:
Adobe ColdFusion
Ajax
ASP JavaScript
ASP.NET C#
ASP.NET VB
ASP VBScript
CSS2 and CSS3
DOM (Document Object Model)
HTML4 and HTML5
jQuery (CS5.5 and later)
JavaScript (includes custom class hinting)
JSP
PHP MySQL
Spry