Module
PuduLangDocgen.Markdown.Highlight
Static syntax coloring for code samples
Functions
| Name | Description |
|---|---|
lines |
Escaped HTML of each line, with tokens of known languages wrapped in `hl-*` spans. Unknown languages are escaped without coloring. |
lines
fn lines(language: Str, text: Str) -> Array[Str]
Escaped HTML of each line, with tokens of known languages wrapped in hl-* spans.
Unknown languages are escaped without coloring.
Parameters
languageStrtextStr
Returns
Array[Str]