Bottom Results Panel - Document Syntax Validation

The syntax checker checks documents for compliance with the appropriate specifications and displays comments about the correctness and handling of document elements by browsers. It is possible to verify documents created in markup languages (such as HTML, SVG, WML) and CSS style sheets (CSS sheets can be nested in other documents).

You can run the Syntax Checker tool from Main Menu / Tools / Code Verification with the Check Syntax command or by running this tool from the bottom results panel.

Spider allows you to directly verify documents opened in the editor or using the preview document, which is especially useful when editing documents that are correct only when they are included in other documents, such as files attached in PHP using the include command.

The results of syntax checking and browser compatibility are displayed on the Syntax Correctness tab of the lower results panel.

Syntax validation of markup languages

Spider allows you to check the syntax of different languages and their versions. These include:

  • HTML (HyperText Markup Language) and XHTML
  • MathML (Mathematical Markup Language)
  • SMIL (Synchronized Multimedia Integration Language)
  • SVG (Scalable Vector Graphics)
  • WML (Wireless Markup Language)

An accurate list of all versions of supported languages can be obtained using the TDF Definition File Editor tool.

Additionally, the program offers the possibility to verify the syntax of markup languages online using the W3C® validator. In this case, the program sends the code of the edited document or its address (if opened directly from the server) to the analyzer script on the W3C® servers. More about the online markup validator settings .

To run the syntax checker, use the "Check Document Syntax" command from Main Menu / Tools / Code Validation

CSS validation

Spider allows you to check for syntax correctness and to check the compatibility of CSS sheets with different browsers.

To run a CSS syntax checker, use the "CSS Syntax Checker" command from the Main menu / Tools / Code Validation.

Additionally, the program offers the possibility to verify the CSS syntax online using the W3C® validator. In this case, the program sends the code of the edited document or its address (if opened directly from the server) to the analyzer script on the W3C® servers. More about the online CSS syntax validator .

To run a cross-browser compatibility check of CSS sheets, use the menu associated with the "CSS Syntax Check" command:

  • Check CSS syntax - action as if clicking a button - checks for correct CSS syntax,
  • Check compliance with CSS Level 1.0, ...CSS Level 2.0, ...CSS Level 2.1, ...CSS Level 3.0, ...CSS Mobile Profile 1.0, ...CSS TV Profile 1.0 - checks the compliance of style sheets with the specifications of the corresponding CSS versions.
  • Check Browser Compatibility - checks CSS compatibility with different versions of browsers and displays information about their handling of individual stylesheet elements

Compatibility options for CSS elements with browsers can be set in the "CSS definition file editor" window available from: menu "View" - "General program settings" or the drop-down list of the "Program settings" button on " Main bar ".

Syntax validation and CSS compliance results

The results of the tool are presented in the "Syntax Correctness" tab on the "Results Panel", which appears automatically if there are comments, warnings or information about the document.

The results window contains three columns:

  • the left column - the icon with a ball indicates the type of message:
    - Information about incompatibilities with browsers, suggestions for better solutions,
    - warning of possible problems in some browsers,
    - syntax error.
  • Syntax verification message - information about errors and incompatibilities found
  • Name of the file where the error was found
  • Line number - line number the item refers to

After clicking on an item in the verification results, the editor will go to the appropriate line and it will be highlighted.

You can export the report to a file in TXT or HTML format. To do this, use the button on the bar on the right side of the tab.

If you think that one of the listed elements is not an error, or that this is how you want your document to be, you can remove all errors of that type from the list. To do this, right-click on the element, and then use the"Delete all errors of this type" command from the context menu.

Related topics

To top