1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-07-15 01:14:21 +02:00
Commit Graph

41 Commits

Author SHA1 Message Date
b24f9361ab Update list of languages in README. 2017-09-19 11:01:32 +10:00
3df4c80190 Rename S -> R + sort list of lexers. 2017-09-19 10:47:22 +10:00
fbc889aad6 Correct HTML output + add R/S.
Fixes #1, #2, #3.
2017-09-19 10:30:10 +10:00
d4a6811691 Merge pull request #2 from mattn/windows-color
support windows colors
2017-09-19 07:59:50 +10:00
686fad4ef4 support windows colors 2017-09-19 00:27:47 +09:00
2dc153de8a Add analyser for bash. 2017-09-18 20:30:19 +10:00
57c8e08560 Add CMake. 2017-09-18 19:29:14 +10:00
afc6c44415 Pure Go. 2017-09-18 15:05:57 +10:00
82f4e3cd79 Add list of supported languages. 2017-09-18 14:50:20 +10:00
c8636118d5 Remove unused dark/light style type. 2017-09-18 14:19:59 +10:00
19d5d708ad Gitter link. 2017-09-18 14:07:08 +10:00
d185b18f1e Add badges and Travis. 2017-09-18 14:04:02 +10:00
1374cf9ffb More README. 2017-09-18 13:59:11 +10:00
ca585f2681 Less-brief introduction. 2017-09-18 13:33:56 +10:00
431e913333 Update documentation. Include "quick" package. 2017-09-18 13:15:07 +10:00
adb07b9e0d Add Kotlin. 2017-09-18 11:49:16 +10:00
a10fd0a23d Switch to github.com/dlclark/regexp2.
This makes translating Pygments lexers much much simpler (and possible).
2017-09-18 11:16:44 +10:00
86bda70acd Switch to github.com/dlclark/regexp2 2017-09-15 22:18:20 +10:00
d12529ae61 HTML formatter + import all Pygments styles. 2017-07-20 00:01:29 -07:00
a3862242d5 Ensure ^C captures profile information. 2017-06-07 20:39:58 +10:00
a0db747409 Rename formatter "tokens" -> "raw". 2017-06-07 20:13:25 +10:00
7a7b85b4b3 Add protobuf and thrift. 2017-06-07 19:47:59 +10:00
7ae55eb265 Wire up content sniffing. 2017-06-07 19:47:59 +10:00
7b6a07b9bb Revert to using CIE76 for style colour matching.
Some testing showed RGB distance was *really* bad.
2017-06-07 19:47:59 +10:00
d852022f8d Move style and formatter API into chroma package. 2017-06-07 19:47:59 +10:00
ef4a53333b Just use a basic RGB distance.
Not perfect, but probably sufficient.
2017-06-07 19:47:59 +10:00
ca512c335b Make --list more detailed. 2017-06-07 19:47:59 +10:00
5f7faa38d5 Add "tokens" formatter. 2017-06-07 19:47:59 +10:00
5749aebe42 Generalise and support 8, 256 and 16m colour terminals. 2017-06-07 19:47:59 +10:00
dba8ec47d2 Fixes: css, html, php. 2017-06-07 19:47:59 +10:00
6aea285ca4 Imported: css, html, java, php. 2017-06-07 19:47:59 +10:00
8ec7ab9986 Support #pop:<n>. 2017-06-07 19:47:59 +10:00
1f47bd705c Use pointers to tokens + support regex flags in importer. 2017-06-07 19:47:59 +10:00
c64e5829b5 Add JavaScript. 2017-06-07 19:47:59 +10:00
6e576b1597 Add pygments2chroma.py script. 2017-06-07 19:47:59 +10:00
a8e8490739 Add C++ lexer, generic SQL lexer. 2017-06-07 19:47:59 +10:00
5dedc6e45b Add a bunch of automatically translated lexers. 2017-06-07 19:47:59 +10:00
b30de35ff1 Use a callback to emit tokens.
This is a) faster and b) supports streaming output.
2017-06-07 19:47:59 +10:00
6dd81b044b Add Markdown processor. A bunch of performance improvements. 2017-06-07 19:47:59 +10:00
b2fb8edf77 Initial commit! Working! 2017-06-07 19:47:59 +10:00
3de978543f Initial commit 2017-06-07 19:47:08 +10:00