Patronage & Donations
If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons:
Patreon Logo
For regular monthly donations
PayPal Logo
For one time donations
All donations will be gratefully received - thank you!
Toggle theme:Toggle Theme Button
Content of directory's README

GNU Source-highlight
====================

Source-highlight generates syntax-highlighted documents from source
files. It also provides a C++ highlight library.

Language and output format specifications are loaded dynamically, so new
languages and formats can be added without recompiling.

Usage
-----

Basic example:

  source-highlight -s c -f esc sourcefile.c | less -R

View any source file with syntax highlighting through less:

  export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
  export LESS='-R'

Add those lines to your ~/.bash_profile for permanent effect.

Use -f esc256 instead of -f esc if your terminal supports 256 colors.

Added Languages
---------------

This build adds YAML and Markdown support (upstream bug #62751):

  - yaml, yml            -> YAML files
  - md, mkd, markdown    -> Markdown files

Test examples:

$ curl -s https://raw.githubusercontent.com/git/git/master/.github/workflows/main.yml \
    | source-highlight -s yaml -f esc | less -R

$ curl -s https://raw.githubusercontent.com/git/git/master/README.md \
    | source-highlight -s md -f esc | less -R

Homepage
--------

  https://www.gnu.org/software/src-highlite/

Icon  Name                        Last modified      Size  Description
[<--] Parent Directory - [!!!] README 2026-06-20 11:37 1.1K [SPT] doinst.sh 2023-07-22 09:57 162 [DIF] gcc11.patch 2022-03-11 05:34 1.1K [   ] markdown.lang 2026-04-11 17:53 5.4K [TXT] slack-desc 2013-11-26 09:57 1.0K [SPT] source-highlight.SlackBuild 2026-04-11 17:53 3.4K [   ] source-highlight.info 2026-10-17 03:40 327 [   ] yaml.lang 2026-04-11 17:53 3.3K
Server (facade0) bandwidth utilisation
0  Bandwidth graph measuring   0.06 Gbit/s  10 Gbit/s