clp

command line syntax highlighter
git clone git://jeskin.net/clp.git
README | Log | Files | Refs | LICENSE

commit 5f7a75fc94d4eb4fa2f09e84a540a0b0e15a234c
parent a469b090f4a01f99397b3c5cc963c7c5c1de1c8a
Author: Jon Eskin <eskinjp@gmail.com>
Date:   Mon, 18 Jul 2022 12:10:11 -0400

update readme and manual

Diffstat:
MREADME.md | 2+-
Mman/clp.1 | 25+++++++++++++------------
2 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/README.md b/README.md @@ -25,7 +25,7 @@ $ make ## Usage ``` -$ clp [-t FILETYPE] filename +$ clp [options] filename ``` clp will determine how to highlight the file by its extension, but you can diff --git a/man/clp.1 b/man/clp.1 @@ -3,21 +3,22 @@ clp \- print files to stdout with syntax highlighting .SH SYNOPSIS .B clp -[\fb\-t\fr \fifiletype\fr] -[\fb\-\-override-filetype\fr \fifiletype\fr] -[\fb\-l\fr] -[\fb\-\-list-overrides\fr] +[\fboptions\fr] file .SH DESCRIPTION .B clp -reads an input file, determines its language from its filetype, and writes it to stdout with syntax highlighting. +Reads an input file, determines its language from its filetype, and writes it to stdout with syntax highlighting. .SH OPTIONS -.TP -.BR \-l ", " \-\-list-overrides +.HP +\fB\-l\fR, \fB\-\-list\-overrides\fR +.IP See below. -.TP -.BR \-t ", " \-\-override-filetype=\fIFILETYPE\fR +.HP +\fB\-t\fR, \fB\-\-override\-filetype\fR {filetype} +.IP Force a language's syntax for highlighting the file. To see available filetypes, run \fBclp \-\-list\-overrides\fR\ -.TP -.BR \-t ", " \-\-highlight-line=\fILINE NUMBER\fR -Highlight a non-blank line by inverting its colors + +.HP +\fB\-h\fR, \fB\-\-highlight\-line\fR {number} +.IP +Highlight a non-blank line