.Dd February 7, 2019 .Dt HI 1 .Os . .Sh NAME .Nm hi .Nd syntax highlighter . .Sh SYNOPSIS .Nm .Op Fl f Ar format .Op Fl l Ar lang .Op Fl n Ar name .Op Ar file .Nm .Fl c . .Sh DESCRIPTION .Nm highlights the contents of a .Ar file or standard input and formats it on standard output. A maximum of 32K is read from standard input. . .Pp The arguments are as follows: .Bl -tag -width Ds .It Fl c Compile all regular expressions and exit. .It Fl f Ar format Set the output format. The default .Ar format is .Cm ansi . .It Fl l Ar lang Set the input language. If a .Ar file is provided, the input language may be inferred from its name. .It Fl n Ar name Override the name used to infer the input language. .El . .Pp The output formats are as follows: .Bl -tag -offset indent -width "html-document" .It Cm ansi ANSI terminal escape codes. .It Cm irc IRC formatting codes. Requires support for color code 99 (default). .It Cm html HTML fragment. .It Cm html-document HTML document. .El . .Pp The languages are as follows: .Bl -tag -offset indent -width "make" .It Cm c The C11 language. .It Cm make The portable subset of .Xr make 1 . Variable substitution supports one level of nesting with the same delimiter. .It Cm mdoc The .Xr mdoc 7 language. .El