.Dd February 9, 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 Fl o Ar opts .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 "-f format" .It Fl c Compile all regular expressions and exit. .It Fl f Ar format Set the output format. .It Fl l Ar lang Set the input language. .It Fl n Ar name Override the name used to infer the input language. .It Fl o Ar opts Set output format options. .Ar opts is a comma-separated list of options. .El . .Ss Output Formats The default output format is .Cm ansi . . .Bl -tag -width Ds .It Cm ansi Output ANSI terminal escape codes. . .It Cm irc Output IRC formatting codes. .Pp The options are as follows: .Bl -tag -width "monospace" .It Cm monospace Use the monospace formatting code introduced by IRCCloud. .El . .It Cm html Output HTML .Sy
with
.Sy 
classes.
.Pp
The options are as follows:
.Bl -tag -width "title=..."
.It Cm css Ns = Ns Ar url
With
.Cm document ,
output a
.Sy 
element for the external stylesheet
.Ar url .
If unset,
output default styles in a
.Sy