## Configuring the Style Checker

Clicking the toolbutton shown to the left opens the settings for the TopStyle Style Checker. You can also open the settings by choosing Options under the Options menu or by pressing F8, and then clicking the Style Checker button in the column on the left. In the Style Checker dialog, you can specify the following:

Check styles using the following CSS definitions
  TopStyle will check the validity of CSS rules based on the chosen CSS definitions, and report any violations for each definition. If group errors by CSS definition is checked (which it is by default), the list of validation messages will be grouped so that "CSS Level 1" messages will be listed first, followed by all "CSS Level 2" messsages, etc.
Show Selectors
  Selecting this option will cause the style checker to include the Selector name above each validation message.
Allow Duplicate Selectors
  Handling of duplicate selectors varies from browser to browser. It is generally recommended that you avoid using them. By default, TopStyle's validator will flag duplicate selectors and not validate the rules associated with them, but this option will cause rules for duplicate selectors to be validated.
URL Verification
  This option will cause the TopStyle validator to verify local and/or remote URLs (the timeout setting will determine how long the validator will wait for remote URL connections to be made). Note that the general syntax for specifying URLs in property values is URL(filename) (ex: URL("../images/filename.gif").
Error Levels
  The Style Checker can provide different kinds of validation messages, ranging from syntax errors and invalid style rules to tips on best practices and bugs or limitations in specific browser implementations of CSS. If you do not wish to see all possible messages, you can uncheck the categories you want to suppress.
W3C CSS Validator
  Allows you to specify the URL for the W3C CSS Validator (the standard URL is set up by TopStyle automatically) and what kinds of validation messages you wish to receive from the W3C validator.

Related topics: TopStyle Style Checker, Reading Validation Messages, W3C CSS Validator, Setting the CSS Definition

Section Contents | Help Contents