Skip to content

Commit 3af56ee

Browse files
intro: lexers for markdown code block syntax highlights in writing tips
1 parent cc9e042 commit 3af56ee

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- mkdocs: round corners style for buttons etc
1414
- intro: add code of respect
1515
- dev: stale issue & pr scheduled check (monthly)
16+
- intro: lexers for markdown code block syntax highlights in writing tips
1617

1718
## Changed
1819
- mkdocs: correct github url for repo and edit link

docs/writing-tips.md

+15
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,21 @@ Code blocks include a copy icon automatically
149149

150150
Syntax highlighting in code blocks
151151

152+
[Available Lexers for syntax highlights](https://pygments.org/docs/lexers/#pygments.lexers.configs.UnixConfigLexer){target=_blank .md-button}
153+
154+
155+
??? INFO "Lexers used by Practicalli"
156+
- `clojure` Clojure and ClojureScript code
157+
- `markdown` markdown text
158+
- `make` Makefile task definitions
159+
- `unixconfig` general configuration files
160+
- `yaml` .yaml / .yml configuration files, e.g. GitHub Workflow
161+
- `shell` scripts (alternatives `bash`, `zsh`)
162+
- `shell-session` prompt, command and output for one or more commands
163+
- `html`
164+
- `mermaid` ([Diagrams - Material for MkDocs](https://squidfunk.github.io/mkdocs-material/reference/diagrams/))
165+
166+
152167
```clojure
153168
(defn my-function ; Write a simple function
154169
"With a lovely doc-string"

0 commit comments

Comments
 (0)