Format, CSS, Text Editor, Options Dialog Box
This dialog box makes it possible for you to change the default formatting settings for the CSS Editor.
To edit these options, select Options from the Tools menu to open the Options dialog box. In the left pane, expand the CSS folder under Text Editor, and then select Format.
- Compact rules
- Formats text according to the compact rules. The selector and declaration are positioned on the same line, as shown in the following example:
- Formats text according to the semi-expanded rules. The selector and initial brace are positioned on the same line, declarations are indented on subsequent lines, and the closing brace is aligned with the matching opening brace:
- Formats text according to the expanded rules. The selector and initial brace each appear on their own lines, declarations are indented on subsequent lines, and the closing brace is aligned with the matching opening brace:
These options cause the HTML view, CSS, and XML editors to apply a default case format to the names of CSS attributes and properties during automatic formatting. The options available are described in the following table:
|As entered||Properties remains exactly as entered in HTML View.|
|Lowercase||Case of properties formatted to lowercase as they are entered in HTML View.|
|Uppercase||Case of properties formatted to uppercase as they are entered in HTML View.|
Note Setting the Lowercase or Uppercase option causes all properties in your HTML markup to be reformatted to the case specified. Setting a default case for attribute and property names can have a significant impact on how your HTML markup interacts with XML, which is case-sensitive.