mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-27 17:15:27 +02:00

* Update rpicam-still.md * Update jello.md * Update dropdb.md * Update aws-eks.md * Update sfdisk.md * Update hyperfine.md * Update quarto.md * Update for.md * Update coproc.md * Update vagrant-validate.md * Update kubetail.md * Update kubetail.md * Update pstoedit.md * Update highlight.md * Update linode-cli-linodes.md * Update swig.md * Update phpcbf.md * Update unzipsfx.md * Update d8.md * Update trdsql.md * Update keyd.md * Update mamba-repoquery.md * Update pages/common/jello.md * Update coproc.md * Apply suggestions from code review Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * Update pages/common/for.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * Update for.md --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
24 lines
952 B
Markdown
24 lines
952 B
Markdown
# highlight
|
|
|
|
> Outputs syntax-highlighted source code to a variety of formats.
|
|
> More information: <http://andre-simon.de/doku/highlight/en/highlight.php>.
|
|
|
|
- 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_code}}`
|
|
|
|
- Produce an HTML fragment, suitable for inclusion in a larger document:
|
|
|
|
`highlight {{[-o|--out-format]}} {{html}} {{[-f|--fragment]}} {{[-S|--syntax]}} {{language}} {{source_file}}`
|
|
|
|
- Inline the CSS styling in every tag:
|
|
|
|
`highlight {{[-o|--out-format]}} {{html}} --inline-css {{[-S|--syntax]}} {{language}} {{source_file}}`
|
|
|
|
- List all supported languages, themes, or plugins:
|
|
|
|
`highlight --list-scripts {{langs|themes|plugins}}`
|
|
|
|
- Print a CSS stylesheet for a theme:
|
|
|
|
`highlight {{[-o|--out-format]}} {{html}} --print-style {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}} --stdout`
|