carta
chilight(1)

chilight1

Highlight a c source file

Usage

chilight [-V] [-f format] [-o file] [-t title] [-w width] [file ...]

Overview

The chilight utility colorizes the input file, expected to be written in the C language, with text attributes or markups.

The options are as follows:

-f format

Set the output format to format.
The format can be one of: ansi_color, ansi_bold, html_color, html_font, roff or tty (the default).

-o file

Set the output destination to file.

-t title

Specify the page title for the generated HTML page.

-V

Print version information on standard output then exit.

-w width

Set the tab width for the roff style.
Tabulator characters are converted to suitable amounts of space characters to gain better typographic quality on roff output. Acceptable values are in the range 1..16 which should be ample for most situations.

History

  • Debian 13 (Trixie) to Debian 3.0 (Woody): the text shown here
  • Debian 2.2 (Potato) to Debian 2.0 (Hamm)

-f since Debian 3.0 (Woody); -t since Debian 3.0 (Woody); -w since Debian 3.0 (Woody).

-d until Debian 2.2 (Potato); -s until Debian 2.2 (Potato).

Authors

Sandro Sigala <[email protected]> - original version

Jukka A. Ukkonen <[email protected]> - roff and tty formats, better handling of #xxx preprocessor directives and some minor changes.

From cutils 1.6-7 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.