Skip to content

Commit

Permalink
Add information about highlighting to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed May 21, 2023
1 parent 5c7425f commit 142ec00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/docs/tools/highlight.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Syntax Highlighting

Currently basic syntax highlighting is supported for several environments:

1. <a href="https://marketplace.visualstudio.com/items?itemName=NikolaiKudasovfizruk.rzk-1-experimental-highlighting" target="_blank">`vscode-rzk` VS Code extension</a> provides syntax highlighting for both `*.rzk` files and `rzk` code blocks in Markdown files.
2. HighlightJS syntax highlighting (used by MkDocs) is available at <a href="https://github.com/fizruk/rzk/blob/develop/docs/custom_theme/js/rzk.js" target="_blank">https://github.com/fizruk/rzk/blob/develop/docs/custom_theme/js/rzk.js</a>
3. Pygments syntax highlighting is available a Python package at <a href="https://github.com/fizruk/rzk/tree/develop/rzk/RzkLexer#readme" target="_blank">https://github.com/fizruk/rzk/tree/develop/rzk/RzkLexer</a>. This syntax highlighter is suitable for using with LaTeX (e.g. with `minted` package).
4. There is also an obsolete <a href="https://github.com/fizruk/rzk/blob/develop/try-rzk/playground.html#L219-L269" target="_blank">syntax highlighting mode for CodeMirror 5</a>.
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ nav:
- Rendering Diagrams: rzk-1/render.md
- Weak tope disjunction elimination: rzk-1/recId.md
- Tools:
- Syntax Highlighting: tools/highlight.md
- IDE support: tools/ide.md
- Continuous Verification: tools/continuous.md
- Related Projects:
Expand Down

0 comments on commit 142ec00

Please sign in to comment.