Jos512
abbe00cecd
Provide some default styles for RRT ( fixes #212 ) ( #219 )
2019-01-23 18:48:27 +11:00
Alec Thomas
da5ac60d8c
Add golangci-lint and fix all lint issues.
2018-12-31 22:46:59 +11:00
Kaushal Modi
371820dad6
Assign .gl class to GenericUnderline; add CSS rules for the same
...
'l' in gl is for under(l)ine, as the "gu" class is taken by
GenericSubheading.
- Rules for GenericUnderline are added to all the styles
- Make "Underline" style insert "text-decoration: underline" in CSS.
Fixes https://github.com/alecthomas/chroma/issues/159 .
2018-08-01 17:28:52 -04:00
German Lashevich
33cc533118
✨ New styles from solarized styles family
2018-04-21 09:03:12 +10:00
Alec Thomas
cbc3d5b9f0
Implement special name mappings for EmacsLisp.
...
Fixes #43 .
2017-09-27 21:32:45 +10:00
Alec Thomas
bc2d6680e4
Run gofmt -s over the codebase.
2017-09-26 22:05:55 +10:00
Alec Thomas
c39abfb916
Squish the GitHub style a bit.
2017-09-26 22:05:55 +10:00
Abe Estrada
0f9e25c566
Add 'dracula' style
...
Converted from https://github.com/dracula/pygments
2017-09-25 21:11:21 -06:00
Alec Thomas
bdc1124369
Switch to Pygments-style CSS class names.
...
Add GitHub theme + CSS to style importer.
2017-09-25 21:46:25 +10:00
Alec Thomas
237eebbe1a
A naive YAML lexer.
...
Does not try to be smart in anyway. Instead, just highlights what it
can. Used this reference: https://learnxinyminutes.com/docs/yaml/
Fixes #13 .
2017-09-24 21:47:05 +10:00
Alec Thomas
d5083b3f7c
Big changes to the style and colour APIs.
...
- Styles now use a builder system, to enforce immutability of styles.
- Corrected and cleaned up how style inheritance works.
- Added a brightening function to colours
- HTML formatter will now automatically pick line and highlight colours
if they are not provided in the style. This is done by slightly
darkening or lightening.
Fixes #21 .
2017-09-23 22:09:46 +10:00
Alec Thomas
551f7cee9a
Return errors for invalid styles, rather than panicking.
2017-09-21 12:52:08 +10:00
Alec Thomas
4c6dba0fc4
Add "monokailight" style.
2017-09-21 12:28:03 +10:00
Alec Thomas
a72960340e
Add test to pre-compile all regexes.
2017-09-19 14:15:33 +10:00
Alec Thomas
d80c30ae4e
Sort formatters and styles Names().
2017-09-19 11:31:51 +10:00
Alec Thomas
57c8e08560
Add CMake.
2017-09-18 19:29:14 +10:00
Alec Thomas
d12529ae61
HTML formatter + import all Pygments styles.
2017-07-20 00:01:29 -07:00
Alec Thomas
7a7b85b4b3
Add protobuf and thrift.
2017-06-07 19:47:59 +10:00
Alec Thomas
7ae55eb265
Wire up content sniffing.
2017-06-07 19:47:59 +10:00
Alec Thomas
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
Alec Thomas
d852022f8d
Move style and formatter API into chroma package.
2017-06-07 19:47:59 +10:00
Alec Thomas
5749aebe42
Generalise and support 8, 256 and 16m colour terminals.
2017-06-07 19:47:59 +10:00