1
0
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:
Alec Thomas
2017-06-02 00:17:21 +10:00
parent 3de978543f
commit b2fb8edf77
16 changed files with 962 additions and 0 deletions

12
formatters/api.go Normal file
View 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
}