Options (4)
-o, --out-formatbooleanProduce a complete HTML document from a source code file
Example:
highlight {{[-o|--out-format]}} {{html}} {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}} {{path/to/source_code}}-s, --stylebooleanProduce a complete HTML document from a source code file
Example:
highlight {{[-o|--out-format]}} {{html}} {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}} {{path/to/source_code}}-S, --syntaxbooleanProduce a complete HTML document from a source code file
Example:
highlight {{[-o|--out-format]}} {{html}} {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}} {{path/to/source_code}}-f, --fragmentbooleanProduce an HTML fragment, suitable for inclusion in a larger document
Example:
highlight {{[-o|--out-format]}} {{html}} {{[-f|--fragment]}} {{[-S|--syntax]}} {{language}} {{source_file}}Examples (5)
Produce a complete HTML document from a source code file
highlight [-o|--out-format] html [-s|--style] theme_name [-S|--syntax] language path/to/source_codeProduce an HTML fragment, suitable for inclusion in a larger document
highlight [-o|--out-format] html [-f|--fragment] [-S|--syntax] language source_fileInline the CSS styling in every tag
highlight [-o|--out-format] html --inline-css [-S|--syntax] language source_fileList all supported languages, themes, or plugins
highlight --list-scripts langs|themes|pluginsPrint a CSS stylesheet for a theme
highlight [-o|--out-format] html --print-style [-s|--style] theme_name [-S|--syntax] language --stdoutmade by @shridhargupta | data from tldr-pages