1
0
Fork
You've already forked hush
0
line oriented syntax highlighter for highlighting html
  • C 90%
  • Makefile 6%
  • Roff 4%
2026年06月30日 16:29:10 +05:30
parsers more C types 2026年06月30日 16:28:29 +05:30
config.mk bump 2026年06月30日 16:29:10 +05:30
COPYING init 2026年06月29日 14:48:23 +05:30
hush.1 add README 2026年06月30日 11:20:42 +05:30
hush.c fix warnings 2026年06月30日 11:21:55 +05:30
hush.h add rust highlighting 2026年06月30日 16:25:49 +05:30
languages.h add rust highlighting 2026年06月30日 16:25:49 +05:30
Makefile add README 2026年06月30日 11:20:42 +05:30
README.txt bump 2026年06月30日 16:29:10 +05:30

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.