Dreamweaver.codehints.showcodehints(), Dreamweaver.reloadcodecoloring(), Find and replace functions – Adobe Dreamweaver API Reference CS5 User Manual
Page 449
444
DREAMWEAVER API REFERENCE
Code
Last updated 8/27/2013
Example
Your JavaScript code might build a Code Hints menu that contains user-defined session variables. Each time the list
of session variables changes, that code needs to update the menu. Before the code can load the new list of session
variables into the menu, it needs to remove the old list. Calling this function removes the old session variables.
dreamweaver.codeHints.showCodeHints()
Availability
Dreamweaver MX.
Description
Dreamweaver calls this function when the user opens the Edit > Show Code Hints menu item. The function opens the
Code Hints menu at the current selection location in Code view.
Arguments
None.
Returns
Nothing.
Example
The following example opens the Code Hints menu at the current insertion point in the document when it is in Code view.
dw.codeHints.showCodeHints()
dreamweaver.reloadCodeColoring()
Description
Reloads code coloring files from the Dreamweaver Configuration/Code Coloring folder.
Arguments
None.
Returns
Nothing.
Example
dreamweaver.reloadCodeColoring()
Find and replace functions
Find and replace functions handle find and replace operations. They cover basic functionality, such as finding the next
instance of a search pattern, and complex replacement operations that require no user interaction.