Menu:

Latest news:

July 19, 2007:
New version of CSSTidy: 1.3. See the changelog for more information.

Changelog...

Powered by sf.net

Versions:

PHP: 1.3
C++: 1.3

Links:

- CSSTidy on GitHub
- CDBurnerXP
- OSWD.org
- XHTML forum [de]
- (X)HTML Validator
- XHTML Validator
- CSS 2.1
- CSS 3
- CSS Validator
- Flyspray
- PCMasters

Templates

A template is a file that consists of multiple single strings, which are seperated by the character "|" without quotes. They may contain any other characters like newlines, tabs and html-tags for the visual formatting (only <span> is allowed).
Currently 14 strings are needed. The best way to understand where the strings are used, is to have a look either at the predefined templates or at the source-code which generates the HTML output. You can also have a look at the example below the description. The following is a short description of all 14 strings:

  1. string before @rule
  2. string+bracket after @-rule
  3. string before selector
  4. string+bracket after selector
  5. string before property
  6. string after property+before value
  7. string after value
  8. closing bracket - selector
  9. space between blocks {...}
  10. closing bracket @-rule
  11. indentation in @-rules
  12. before comments
  13. after comments
  14. after last one-line @-rule

Position of templates ([1] = first string, [2] = second string,...):


[1]@charset [6]"utf-8"[7];

[1]@import [6]"my.css"[7];
[14]
[1]@media screen[2] {
[11][3]b[4] {
[11][5]color:[6]blue[7];

[11][8]}[9]
[11]
[11][3]a[4] {
[11][5]color:[6]red[7];
[11][8]}[10]
}

[3]a[4] {
[5]color:[6]red[7];
[8]}[9]

[3]b[4] {

[5]color:[6]blue[7];
[8]}[9]

Predefined templates