line oriented syntax highlighter for highlighting html
- C 90%
- Makefile 6%
- Roff 4%
| parsers | more C types | |
| config.mk | bump | |
| COPYING | init | |
| hush.1 | add README | |
| hush.c | fix warnings | |
| hush.h | add rust highlighting | |
| languages.h | add rust highlighting | |
| Makefile | add README | |
| README.txt | bump | |
hush ==== hush is a minimal syntax highlighter which processes html documents. It is meant to be used in the following pipeline: $ ... | md2html | hush --html | ... Usage ----- Hush by default takes in a code file and uses ANSI sequences to highlight in the terminal. If no input file is specified it reads it from stdin. In this case, the language must be passed by the command flag --language. Highlight a file directly: $ hush --language c main.c Use as a stdin filter: $ cat main.c | hush --language c Highlight html: $ hush --html index.html Adding new language ------------------- To add a new language one must edit the source code and recompile: 1. Add a new parser in parsers/ 2. Register it in languages.h The parser runs line-by-line and works by mapping highlight groups to specific character indices. BUGS ==== Report bugs here: https://codeberg.org/zoomlogo/hush/issues COPYING ======= Read the ./COPYING file for more information. CHANGELOG ========= v0.1.1 Add Rust highlighting. v0.1.0 Initial release.