Produce a complete HTML document from a source code file

highlight

  • Outputs syntax-highlighted source code to a variety of formats.
    More information: <http://www.andre-simon.de/doku/highlight/highlight.php>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy install highlight on any operating system with command-not-found.com