Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-10 00:19:02 +00:00
parent 9f85bd373f
commit c39b4c5f19
53 changed files with 152 additions and 86 deletions

View File

@@ -6,19 +6,19 @@ source: https://github.com/tldr-pages/tldr.git
# highlight
> Outputs syntax-highlighted source code to a variety of formats.
> More information: <http://www.andre-simon.de/doku/highlight/highlight.php>.
> More information: <http://andre-simon.de/doku/highlight/en/highlight.php>.
- Produce a complete HTML document from a source code file:
`highlight --out-format={{html}} --style {{theme_name}} --syntax {{language}} {{path/to/source_code}}`
`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 --out-format={{html}} --fragment --syntax {{language}} {{source_file}}`
`highlight {{[-o|--out-format]}} {{html}} {{[-f|--fragment]}} {{[-S|--syntax]}} {{language}} {{source_file}}`
- Inline the CSS styling in every tag:
`highlight --out-format={{html}} --inline-css --syntax {{language}} {{source_file}}`
`highlight {{[-o|--out-format]}} {{html}} --inline-css {{[-S|--syntax]}} {{language}} {{source_file}}`
- List all supported languages, themes, or plugins:
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Print a CSS stylesheet for a theme:
`highlight --out-format={{html}} --print-style --style {{theme_name}} --syntax {{language}}] --stdout`
`highlight {{[-o|--out-format]}} {{html}} --print-style {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}}] --stdout`