1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-21 21:17:50 +02:00

Add badges and Travis.

This commit is contained in:
Alec Thomas 2017-09-18 14:01:49 +10:00
parent 1374cf9ffb
commit d185b18f1e
2 changed files with 5 additions and 3 deletions

2
.travis.yml Normal file
View File

@ -0,0 +1,2 @@
sudo: false
language: go

View File

@ -1,4 +1,4 @@
# Chroma - A general purpose syntax highlighter for Go
# Chroma - A general purpose syntax highlighter for Go [![](https://godoc.org/github.com/alecthomas/chroma?status.svg)](http://godoc.org/github.com/alecthomas/chroma) [![Build Status](https://travis-ci.org/alecthomas/chroma.png)](https://travis-ci.org/alecthomas/chroma)
Chroma takes source code and other structured text and converts it into syntax
highlighted HTML, ANSI-coloured text, etc.
@ -11,7 +11,7 @@ translaters for Pygments lexers and styles.
<!-- MarkdownTOC -->
- [Using the library](#using-the-library)
- [Quick start](#quick-start)
- [Quick start](#quick-start)
- [Identifying the language](#identifying-the-language)
- [Formatting the output](#formatting-the-output)
- [The HTML formatter](#the-html-formatter)
@ -44,7 +44,7 @@ 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`
value in each respective package, which provides sane defaults.
## Quick start
### Quick start
A convenience function exists that can be used to simply format some source
text, without any effort: