Versions in this module Expand all Collapse all v0 v0.0.3 May 6, 2015 v0.0.2 May 6, 2015 Changes in this version + var DefaultHTMLConfig = HTMLConfig + func Annotate(src []byte, a Annotator) (annotate.Annotations, error) + func AsHTML(src []byte) ([]byte, error) + func NewScanner(src []byte) *scanner.Scanner + func Print(s *scanner.Scanner, w io.Writer, p Printer) error + type Annotator interface + Annotate func(start int, kind Kind, tokText string) (*annotate.Annotation, error) + type HTMLAnnotator HTMLConfig + func (a HTMLAnnotator) Annotate(start int, kind Kind, tokText string) (*annotate.Annotation, error) + type HTMLConfig struct + Comment string + Decimal string + HTMLAttrName string + HTMLAttrValue string + HTMLTag string + Keyword string + Literal string + Plaintext string + Punctuation string + String string + Tag string + Type string + type HTMLPrinter HTMLConfig + func (p HTMLPrinter) Print(w io.Writer, kind Kind, tokText string) error + type Kind uint8 + const Comment + const Decimal + const HTMLAttrName + const HTMLAttrValue + const HTMLTag + const Keyword + const Literal + const Plaintext + const Punctuation + const String + const Tag + const Type + const Whitespace + func (i Kind) GoString() string + type NilAnnotator struct + Code *sourcegraph.SourceCode + Config HTMLConfig + func NewNilAnnotator(e *vcsclient.FileWithRange) *NilAnnotator + func (a *NilAnnotator) Annotate(start int, kind Kind, tokText string) (*annotate.Annotation, error) + type Printer interface + Print func(w io.Writer, kind Kind, tokText string) error