Esempio n. 1
0
func CPrint(r io.Reader, w io.Writer, palettes ColorPalettes) error {
	return syntaxhighlight.Print(syntaxhighlight.NewScannerReader(r), w, Printer{palettes})
}
Esempio n. 2
0
func AsCCat(r io.Reader, w io.Writer, cdefs ColorDefs) error {
	return syntaxhighlight.Print(newScanner(r), w, Printer{cdefs})
}