mirror of
https://github.com/alecthomas/chroma.git
synced 2025-07-03 00:37:01 +02:00
Initial commit! Working!
This commit is contained in:
12
formatters/api.go
Normal file
12
formatters/api.go
Normal file
@ -0,0 +1,12 @@
|
||||
package formatters
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/alecthomas/chroma"
|
||||
)
|
||||
|
||||
// Formatter takes a token stream and formats it.
|
||||
type Formatter interface {
|
||||
Format(w io.Writer, tokens []chroma.Token) error
|
||||
}
|
Reference in New Issue
Block a user