The Web preference lets you specify how Designer should handle the editing and creations of CSS and HTML files.
21.6.1 CSS Files
The CSS Files preferences allow you to specify how Eclipse displays and manages CSS files. This is an Eclipse option; for more details, see the Eclipse SDK.
Table 21-54 Preferences: Web > CSS Files > Editor
|
Specifies the number of characters in a line. |
|
Specifies whether the editor should insert a line between the CSS properties. |
|
Specifies whether the HTML editor (used in the e-mail notification template editor) should allow wrapping of the value of a style attribute. |
>
|
Specifies how the first line of text indents.
Specifies the size of the indent. |
|
Specifies the default case for identifiers, property names, and property values. |
Syntax Coloring
Table 21-55 Preferences: Web > CSS Files > Editor > Syntax Coloring Settings
Syntax Element |
Choose the content type for which you want to define a style. |
|
Specifies the syntax highlighting and formatting for individual CSS elements. |
|
Displays sample CSS with the selected syntax coloring options. |
Template
Eclipse allows you to use a template file for the initial content of your cascading style sheets (CSS). The CS files are used to format the content in the Eclipse program. You can either create a new CSS file or import and existing CSS file through this page to use as a template. For more information, see the Eclipse SDK.
21.6.2 HTML Files
The HTML Files preferences allow you to specify how Designer displays and manages HTML files and content. This is an Eclipse option; for more details, see the Eclipse SDK.
Table 21-56 Preferences: Web > HTML Files
: |
Choices are:
|
|
Specifies the file suffix the editor should add when creating a new file. The default is html. |
|
Specifies the editor’s encoding for new files. |
|
Choose the encoding for files opened in the editor. Click to accept the default UTF-8, or select one from the list. |
Editor
Table 21-57 Preferences: Web > HTML Files > Editor
|
Specifies the number of characters for each line. |
|
Specifies what the editor should do with multiple attributes. |
|
Specifies what the editor should do with final brackets |
|
Specifies what the editor should do with blank lines |
using tabs or spaces
|
Specifies whether the indent should be using tabs or spaces, and also specifies the indentation size. |
|
Specifies whether to do automatic code completion. |
|
Specifies the characters that initiate the content assist. |
|
Specifies if the editor’s suggestions should be in uppercase or lowercase. |
HTML Styles
Table 21-58 Preferences: Web > HTML Files > Syntax Coloring
|
Choose the content type for which you want to define a style. |
|
Specifies the syntax highlighting and formatting for individual CSS elements. |
|
Displays sample CSS with the selected syntax coloring options. |
HTML Templates
Table 21-59 Preferences: Web > HTML Files > Templates Settings
|
The templates are used in the code completion in the source editor.
Use this preference to add, remove or edit templates. |
Typing
Table 21-60 Preferences: Web > HTML Files > Typing
|
The HTML editor automatically closes any comments added to the HTML file. |
|
The HTML editor automatically closes any end tags in the HTML file. |
|
The HTML editor automatically removes any end tags when creating empty self-closing tags. |
Validation
Allows you to define how the HTML editor validates the HTML markup. You can set each validation to a warning, error, or to ignore the problem. You can set these options for the following items:
-
Elements
-
Attributes
-
Document Type
-
Comments
-
CDATA Sections
-
Processing Instructions
-
Entity References
-
Text Regions