Skip to content

Commit

Permalink
Add doc.go.
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Sep 19, 2017
1 parent c259129 commit 04782e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -43,10 +43,10 @@ Lexers convert source text into a stream of tokens, styles specify how token
types are mapped to colours, and formatters convert tokens and styles into
formatted output.

A package exists for each of these, with a global `Registry` variable
containing all of the registered implementations. There are also helper
functions for using the registry in each package, such as looking up lexers by
name or matching filenames, etc.
A package exists for each of these, containing a global `Registry` variable
with all of the registered implementations. There are also helper functions
for using the registry in each package, such as looking up lexers by name or
matching filenames, etc.

In all cases, if a lexer, formatter or style can not be determined, `nil` will
be returned. In this situation you may want to default to the `Fallback`
Expand Down
7 changes: 7 additions & 0 deletions doc.go
@@ -0,0 +1,7 @@
// Package chroma takes source code and other structured text and converts it into syntax highlighted HTML, ANSI-
// coloured text, etc.
//
// Chroma is based heavily on Pygments, and includes translaters for Pygments lexers and styles.
//
// For more information, go here: https://github.com/alecthomas/chroma
package chroma

0 comments on commit 04782e0

Please sign in to comment.