Setting Source preferences
You can set the following Source preferences to control how the Source Code Editor works, and how source code appears in the Source Code Editor: - The general Source preferences turn on and off support for dragging marked text, and control how source code appears in the Source Code Editor. A preview pane in the Preferences dialog box shows you how the source code appears as a result of the options you select.
- Browser Sets preferences let you combine browsers and revisions of the HTML specification into complex sets of HTML syntax rules. The sets you assemble in the Browser Sets preferences appear in the compatibility list in the Syntax Checker. Based on the element descriptions in Web Settings, these preferences determine the rules the Syntax Checker uses when checking your source code. (See Checking syntax.)
- Font preferences control the default screen font that displays source code and content in the Source Code Editor.
- Colors preferences let you show items in color and control the way the individual HTML elements and enclosed text are displayed in the Source Code Editor.
- Printing options let you make the printed version of your source code look different than the online version in the Source Code Editor.
To set general Source preferences: - Choose Edit > Preferences, and then click the Source icon.
- Set the following preferences to control how the Source Code Editor works:
- Enable Dragging of Marked Text turns dragging on or off. This preference is enabled by default.
- Bold For Tags displays HTML tags in boldface in the Source Code Editor.
- Auto Indent controls the automatic indenting of lower level HTML 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 Editor.
- Word Wrap wraps the source code in the Source Code Editor.
- Click OK.
To build a custom browser set for use with the Syntax Checker: - Choose Edit > Preferences, and then click Browser Sets under Source preferences.
- Click the New Set button
below the Browser Sets list, and then enter a descriptive name in the text box. - Select the desired set of browsers from the Browser list and then click OK.
After building a browser set, you can choose the browser set in the compatibility list in the Syntax Checker. (See Checking syntax.)
To edit or delete an existing browser set: - In the Browser Sets preference panel, choose a set from the Browser Sets list.
- Do one of the following:
- To edit the set, select a different set of browsers from the Browser list, and then click OK.
- To delete the set, click Delete, and then click OK.
To set font preferences: - Choose Edit > Preferences, and then select Font under Source preferences.
- Select a typeface, font size, and style for source code. This typeface appears only within the Source Code Editor, not in your document.
- Click OK.
To set preferences for showing items in the Source Code Editor in color: - Choose Edit > Preferences, and then select Colors under Source preferences.
- To set the default coloring button in the Source Code toolbar in the Source Code Editor, do one of the following:
- To set a default of showing no items in the Source Code Editor with color, select None.
- To set a default of showing all items with color, select Detailed.
- To select a default setting for showing a subset of items, select Elements, Media and Links, URLs, or Server Side Code.
- To select a color for an HTML element, click the color field for the element, select a new color, and then click OK in the Color dialog box.
- Click OK.
To set printing preferences: - Choose Edit > Preferences, and then select Printing under Source preferences.
- To make the printed version of your document look different than the online version in the Source Code Editor, select these preferences:
- Printer Specific Settings lets you print using color attributes for syntax highlighting (only useful on a color printer), bold typeface for HTML tags, or line numbers.
- Use Special Font lets you apply a custom typeface, size, and style.
- Click OK.
|