Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render(highlightEvents iter.Seq2[events.Event, error], source string, callback types.AttributeCallback) (string, error)
render renders the code and returns it as a string, with spans for each highlight capture. The [AttributeCallback] is used to generate the classes or inline styles for each span.
Types ¶
This section is empty.
Source Files
¶
- html_render.go
Click to show internal directories.
Click to hide internal directories.