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 23-19 CSS Files
Table 23-36 CSS Files
Figure 23-20 CSS Source
Table 23-37 CSS Source
The HTML Files preferences allow you to specify how Designer displays and manages HTML files and content.
Figure 23-22 HTML Files
Table 23-39 HTML Files
Figure 23-23 HTML Source
Table 23-40 HTML Source
Figure 23-24 HTML Styles
Changes how JavaScript files are created.
Figure 23-26 JavaScript Files
Table 23-43 JavaScript Files
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. |
Changes the formatting for the JavaScript files.
Figure 23-27 JavaScript Source
Table 23-44 JavaScript Source
Customizes the content of the JavaScript files.
Figure 23-28 JavaScript Styles
Table 23-45 JavaScript Styles
Allows the editor to validate the JavaScript as it is entered. To automatically validate the scripts, select
. Otherwise, the JavaScript is not validated.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 catalogs implementation to resolve XML schema and DTD references for associating URLs, system and public identifiers with URLs.
Figure 23-29 XML Catalog Preferences
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 23-30 XML File Preferences
Table 23-46 XML Files Preferences
You can set the following XML Source preferences:
Figure 23-31 XML Source
Table 23-47 XML Source Preferences
The XML Styles preferences allow you to specify the syntax highlighting (foreground and background color) and whether the text should be bold for individual XML constructs.
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 23-32 XML Templates Preference