mirror of
https://github.com/alecthomas/chroma.git
synced 2025-07-13 01:10:14 +02:00
docs(readme): fix call to WithClasses
This commit is contained in:
@ -192,7 +192,7 @@ following constructor options:
|
|||||||
If `WithClasses()` is used, the corresponding CSS can be obtained from the formatter with:
|
If `WithClasses()` is used, the corresponding CSS can be obtained from the formatter with:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
formatter := html.New(html.WithClasses())
|
formatter := html.New(html.WithClasses(true))
|
||||||
err := formatter.WriteCSS(w, style)
|
err := formatter.WriteCSS(w, style)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user