mirror of
https://github.com/alecthomas/chroma.git
synced 2025-01-12 01:22:30 +02:00
8533b6348b
Fixes #69.
20 lines
248 B
Go
20 lines
248 B
Go
package quick_test
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
"github.com/alecthomas/chroma/quick"
|
|
)
|
|
|
|
func Example() {
|
|
code := `package main
|
|
|
|
func main() { }
|
|
`
|
|
err := quick.Highlight(os.Stdout, code, "go", "html", "monokai")
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|