User Guide
600
ADOBE GOLIVE CS2
User Guide
Navigating through source code
Navigating source code by function
The Navigate Through Code menu in the Source Code Editor, JavaScript Editor, and CSS Source Code Editor
toolbars lets you navigate through code by function. In addition, you can add custom markers to thesourcecodeand
Navigate Through Code menu for navigating.
If you’re using the JavaScript Editor, navigate using functions of languages such as JavaScript, VBScript, ASP, Perl,
and Java. If you’re using HTML, you navigate through HTML code using tags that contain the name attribute. If
you’re using CSS, you can navigate through the code using CSS definitions in the CSS Editor.
To navigate through source code
❖ Choose a function from the Navigate Through Code menu.
TheNavigateThrough Code menu listsfunctions in theorder they appear in thecode. If youwanttoviewthe list of
functions alphabetically, Control-click (Windows) or Alt-click (Mac OS) the Function menu.
To add or remove markers in the source code
1 In the Source Code Editor, JavaScript Editor, or CSS Source Code Editor, click to place an insertion point in the
line of code you want to mark.
2 Choose New Marker from the Navigate Through Code menu.
3 Type a name for the marker in the Add Marker dialog box and click OK.
Inserting or rewriting source code automatically
To rewrite source code automatically
You can use GoLive to automatically rewrite source code that you manually entered yourself. GoLive rewrites the
code with indents and line breaks, changes the case of tags and attributes, and sets quotes for attribute values as
specified in the Rewrite Source Code dialog box.
1 Open a page, or select multiple pages in the Files tab of the Site window.
2 Choose Special > Source Code > Rewrite Source Code.
3 Specify options as desired. Click No Change to revert any unwanted changes you’ve made.
4 Click OK.
Inserting text code by using text macros
Text macros can save you time if you frequently use the Source Code Editor and the JavaScript Editor. They eliminate
typing lengthy strings of source code for often-used tags and script elements.
The text macros are stored in an editable file, Default.macro, that resides in a special Code folder within the Settings
folder in the GoLive program folder.










