1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-25 21:39:02 +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 Chroma takes source code and other structured text and converts it into syntax
highlighted HTML, ANSI-coloured text, etc. highlighted HTML, ANSI-coloured text, etc.
@ -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` be returned. In this situation you may want to default to the `Fallback`
value in each respective package, which provides sane defaults. 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 A convenience function exists that can be used to simply format some source
text, without any effort: text, without any effort: