summary refs log tree commit diff
path: root/bin/man1
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-06 23:13:50 -0500
committerJune McEnroe <june@causal.agency>2019-02-06 23:13:50 -0500
commit7d1f76f29a73a16eaf352f9bc78eacd14f217d38 (patch)
tree7c6e4c74c88f3532b8592ca3e9faa11bab0237d8 /bin/man1
parentUpdate neovim to 0.3.4 on Darwin (diff)
downloadsrc-7d1f76f29a73a16eaf352f9bc78eacd14f217d38.tar.gz
src-7d1f76f29a73a16eaf352f9bc78eacd14f217d38.zip
Add hi syntax highlighter
Diffstat (limited to 'bin/man1')
-rw-r--r--bin/man1/hi.162
1 files changed, 62 insertions, 0 deletions
diff --git a/bin/man1/hi.1 b/bin/man1/hi.1
new file mode 100644
index 00000000..5ed72061
--- /dev/null
+++ b/bin/man1/hi.1
@@ -0,0 +1,62 @@
+.Dd February 6, 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 Ar file
+.Nm
+.Fl c
+.
+.Sh DESCRIPTION
+.Nm
+highlights the contents of a
+.Ar file
+or standard input
+and formats it
+on standard output.
+.
+.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,
+.Ar lang
+may be inferred from its name.
+.El
+.
+.Pp
+The following languages are supported:
+.Cm c .
+.
+.Pp
+The output formats are as follows:
+.Bl -tag -width "html-document"
+.It Cm ansi
+ANSI terminal escape codes.
+.It Cm html
+HTML
+.Sy <pre>
+fragment with
+.Sy <span>
+classes.
+.It Cm html-document
+HTML document with default styles.
+.El