html

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL