Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
highlight Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
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>.
- Produce a complete HTML document from a source code file:
`highlight --out-format={{html}} --style {{theme_name}} --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}}`
- Inline the CSS styling in every tag:
`highlight --out-format={{html}} --inline-css --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 --out-format={{html}} --print-style --style {{theme_name}} --syntax {{language}}] --stdout`