cptcss (1) - Linux Manuals

cptcss: create CSS fragment for colouring HTML tables.


cptcss - create CSS fragment for colouring HTML tables.


cptcss [-h] [-f format] [-v] [-V] [file]


The cptcss utility prints a fragment of CSS which can be used to colour the cells of an HTML table, the colours specified by a colour palette table (cpt) file.

The cpt file to use is specified by the final argument. If no cpt file is specified then the program will read from stdin. Output is written to stdout.

The input cpt should be a discrete (since the output CSS is) and each colour level in the file will lead to a CSS class directive for the <td> element. The class name can be modified from the default "cptcss-%i" by using the -f option.


-h, --help

Brief help.

-f, --format string

The format to use for the <td> class name, which should include a single integer specifier "%i" which will enumerate the classes. The default value is "cptcss-%i".

-v, --verbose

Verbose operation.

-V, --version

Version information.


J.J. Green


GMT(1), svgcss3(1).