Setting Source preferences
You can set the following Source preferences to control how the Source Code and JavaScript Editors work, and how source code appears in the Source Code and JavaScript Editors: - The general Source preferences turn on and off support for dragging marked text, and control how source code appears in the Source Code and JavaScript Editors. A preview pane in the Preferences dialog box shows you how the source code appears as a result of the options you select.
- Themes preferences let you select, customize, and rename source code themes, as well as set color, font face, and font size options for elements in different languages (for example, PHP, JavaScript, and HTML). Key sets enable you to control how HTML tags are displayed in the Source Code Editor. For example, you can create a key set that displays the table tag in a certain color, face, and size.
- Syntax preferences enable you to turn on context-sensitive code completion options in the Source Code and JavaScript Editors.
To set general Source preferences: - Choose Edit > Preferences (Windows) or GoLive > Preferences (Mac OS), and then click the Source icon.
- Set the following preferences to control how the Source Code and JavaScript Editors work:
- Enable Dragging for Marked Text turns dragging on or off.
- Auto Indent controls the automatic indenting of lower level elements.
- Tab Size sets the tab size of the auto indent and the number of characters added when you press the Tab key.
- Line Numbers displays line numbers at the left margin of the Source Code or JavaScript Editor.
- Word Wrap wraps the source code in the Source Code or JavaScript Editor.
- Default Theme enables you to select the default theme the Source Code or JavaScript Editor uses to display source code.
- Click OK.
To set Themes preferences: - Choose Edit > Preferences (Windows) or GoLive > Preferences (Mac OS), and then select Themes under Source Preferences.
- Do any of the following:
- To specify a theme for the source code, choose a theme from the Theme menu.
- To customize a theme, choose it from the Theme pop-up menu and select options from the Text Color, Background, Script, Font, and Size menus.
- To rename a theme, choose it from the Theme menu and click Rename; then enter a new name and click OK.
To customize the appearance of a specific language in the Source Code Editor: - Choose Edit > Preferences (Windows) or GoLive > Preferences (Mac OS), and then click Themes under Source preferences.
- Choose a language from the Syntax menu.
- Select an option from the list beneath the Syntax menu to specify what you want to customize.
- Specify a color, face, and font size.
- Repeat steps 2 through 4 for each language and option you want to customize; then click OK.
To set key sets for HTML elements: - Choose Edit > Web Settings.
- In the Markup tab, choose an HTML element (for example, Table).
- Click the Output tab of the Web Settings Element Inspector.
- Choose a key set from the Group menu, and then close the Web Settings window.
- Choose Edit > Preferences (Windows) or GoLive > Preferences (Mac OS), and then select Themes under Source Preferences.
- Choose HTML Syntax from the Syntax menu.
- Select the key set (from step 4) in the list beneath the Syntax menu.
- Specify color, face, and size for the key set. GoLive displays the HTML element represented by the key set with these attributes in the Source Code Editor.
To set Code Completion preferences: - Choose Edit > Preferences (Windows) or GoLive > Preferences (Mac OS), and then select Syntax under Source Preferences.
- Select Enable Code Completion to turn code completion on.
- Select Enable Immediate Completion to automatically insert End tags in the code.
- Select Balance While Typing to automatically jump to the next open bracket when you type a close bracket.
- Drag the Delay slider to specify a delay speed, and then click OK.
|