Documentation ¶
Overview ¶
Package quick provides simple, no-configuration source code highlighting.
Example ¶
package main import ( "log" "os" "github.com/alecthomas/chroma/v2/quick" ) func main() { code := `package main func main() { } ` err := quick.Highlight(os.Stdout, code, "go", "html", "monokai") if err != nil { log.Fatal(err) } }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.