Module

PuduLangDocgen.Markdown.Highlight

View source

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

language
Str
text
Str

Returns

Array[Str]

View source