slackbuilds/development/source-highlight
B. Watson 803a659fce
development/source-highlight: Really add doinst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-07-22 15:52:58 +07:00
..
README
doinst.sh development/source-highlight: Really add doinst.sh. 2023-07-22 15:52:58 +07:00
gcc11.patch development/source-highlight: Patch for gcc >= 11.x, cleanups. 2021-08-19 18:33:48 +07:00
slack-desc
source-highlight.SlackBuild development/source-highlight: No static lib, no INSTALL, add doinst. 2023-07-08 16:41:58 +07:00
source-highlight.info

README

GNU Source-highlight

This program, given a source file, produces a document with syntax
highlighting. It also provides a C++ highlight library.

Source-highlight reads source language specifications dynamically,
thus it can be easily extended (without recompiling the sources) for
handling new languages. It also reads output format specifications
dynamically, and thus it can be easily extended (without recompiling
the sources) for handling new output formats. The syntax for these
specifications is quite easy (take a look at the manual).

Source-highlight is a command line program, and it can also be used as
a CGI.

Notice that source-highlight can also be used as a formatter (i.e.,
without highlighting): you can, for instance, format a txt file in
HTML (and it will take care of translating special characters, such
as, <, >, &).

A common example:
  less /usr/src/linux/kernel/panic.c

to tune the less, add in your .bash_profile these lines:
  export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
  export LESS=' -R '