highlight

Outputs syntax-highlighted source code to a variety of formats. More…

highlight

Outputs syntax-highlighted source code to a variety of formats. More information: http://www.andre-simon.de/doku/highlight/highlight.php.

highlight --out-format={{html}} --style {{theme_name}} --syntax {{language}} {{path/to/source_code}}

highlight --out-format={{html}} --fragment --syntax {{language}} {{source_file}}

highlight --out-format={{html}} --inline-css --syntax {{language}} {{source_file}}

highlight --list-scripts {{langs|themes|plugins}}

highlight --out-format={{html}} --print-style --style {{theme_name}} --syntax {{language}}] --stdout

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← hg-update histexpand →