The Web and XML preferences let you specify how Designer should handle editing and creation of CSS, HTML, and JavaScript* files.
The CSS Files preferences allow you to specify how Designer displays and manages CSS files.
Figure 19-15 Preferences: Web and XML > CSS Files
Table 19-36 Preferences: Web and XML > CSS Files Settings
Figure 19-16 Preferences: Web and XML > CSS Files > Source
Table 19-37 Preferences: Web and XML > CSS Files > Source Settings
Figure 19-17 Preferences: Web and XML > CSS Files > Syntax Coloring
Table 19-38 Preferences: Web and XML > CSS Files > Syntax Coloring Settings
The HTML Files preferences allow you to specify how Designer displays and manages HTML files and content.
Figure 19-18 Preferences: Web and XML > HTML Files
Table 19-39 Preferences: Web and XML > HTML Files Settings
Figure 19-19 Preferences: Web and XML > HTML Files > Source
Table 19-40 Preferences: Web and XML > HTML Files > Source Settings
Figure 19-20 Preferences: Web and XML > HTML Files > Syntax Coloring
Table 19-41 Preferences: Web and XML > HTML Files > Syntax Coloring Settings
Changes how JavaScript files are created.
Figure 19-22 Preferences: Web and XML > JavaScript Files
Table 19-43 Preferences: Web and XML > JavaScript Files Settings
Setting |
Description |
---|---|
|
Sets what type of line delimiter is applied to the file. The options are: |
|
Sets the suffix for the file. The default value is js. It can be set to any value. |
Allows the editor to validate the JavaScript as it is entered. Select
to automatically validate the scripts. If it is not selected, the JavaScript is not validated.Figure 19-23 Preferences: Web and XML > JavaScript Files > JavaScript Validation
Changes the formatting for the source JavaScript files.
Figure 19-24 Preferences: Web and XML > JavaScript Files > Source
Table 19-44 Preferences: Web and XML > JavaScript Files > Source Settings
Customizes the syntax highlighing in the ECMAScript editor. The default colors and fonts can be configured on the Text editors and on the Colors and Fonts preference page.
Figure 19-25 Preferences: Web and XML > JavaScript Files > Syntax Coloring
Table 19-45 Preferences: Web and XML > JavaScript Files > Syntax Coloring Settings
Figure 19-26 Preferences: Web and XML > Task Tags
The Task Tag preferences allow you to specify whether Designer should search for task tags and which task tags to display in the Task view. If
is not selected, Designer does not search for task tags. If you do not use the Task view, make sure this option is not selected because the search can affect Designer’s performance.The
and task tags are defined by default, but you can specify additional tags by selecting and completing the Task Tag dialog box. Use the tab to specify the file types that Designer should search for the selected task tags.The XML Catalog preferences allow you to manage the WST XML catalog implementation. You can add, edit, or delete user-specified catalogs. You cannot use this preference to manage the plug-in specified entries.The XML editor uses the WST XML catalog implementation to resolve XML schema and DTD references for associating URLs, system, and public identifiers with URLs.
Figure 19-27 Preferences: Web and XML > JavaScript > XML Catalog
To add a user-specified entry:
Click Add.
Fill in the fields as follows:
Click
to save.You can set the following general XML File preferences:
Figure 19-28 Preferences: Web and XML > XML Files
Table 19-46 Preferences: Web and XML > XML Files
You can set the following XML Source preferences:
Figure 19-29 Preferences: Web and XML > XML Files > Source
Table 19-47 Preferences: Web and XML > XML Files > Source Settings
The XML syntax coloring lets you specify the syntax highlighting (foreground and background color) and the text formatting for individual XML constructs.
Figure 19-30 Preferences: Web and XML > XML Files > Syntax Coloring
Table 19-48 Preferences: Web and XML > XML Files > Syntax Coloring Settings
Use the XML Templates preference page to define XML templates. The templates are used in the code completion in the XML Source Editor. For example, selecting the XSL Processing Instruction template in the code completion inserts <?xml-stylesheet type=”text/xsl” href=””?> in the source editor and places the cursor in the href value.
Figure 19-31 XML Templates Preference