clp

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

commit ffef5160952c1bc69f8630ee02b1725ab44a067f
parent f43a38e570eadfce977e5adacb8675f15b136eb6
Author: Jon Eskin <eskinjp@gmail.com>
Date:   Mon,  1 Aug 2022 15:10:55 -0400

update readme

Diffstat:
MREADME.md | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md @@ -1,9 +1,11 @@ # clp -clp writes input files to stdout with syntax highlighting. +clp writes input files to stdout with syntax highlighting. I wrote it to fill fzf's preview window. It aims to be relatively fast, provide wide language support, and be easy to extend with new languages. It currently supports 150 languages. +![clpm](https://github.com/jpe90/images/raw/master/clpm.png) + Language support is implemented with LPEG, a tool developed by PUC which uses parsing expression grammars to improve upon traditional regex parsers (described in depth in [this article](http://www.inf.puc-rio.br/~roberto/docs/peg.pdf)). @@ -58,9 +60,9 @@ Highlight a non-blank line ## Motivation -clp runs faster than other command line syntax highlighting programs. When used -as a previewer for a fuzzy finder in a project with large source files, it can -make a very perceptible difference. Quick benchmarks on my machine (clp +I intended clp to fill fzf's preview window, so I wanted it to be fast and support a large number of languages. + +Here are some quick benchmarks comparing similar programs running on my machine (clp installed with LuaJIT, highlighting [sqlite3.c](https://fossies.org/linux/sqlite/sqlite3.c))