chroma

A general purpose syntax highlighter in pure Go

MIT License

Downloads
91
Stars
4.2K
Committers
239

Bot releases are hidden (Show)

chroma - v0.2.1

Published by alecthomas almost 7 years ago

Changelog

e0f32fb Make lexer fixture running cleaner.
e56590a Add data-driven test framework for lexers.
d26f247 Support CSS Custom Property definitions.
c9f612c Fix broken css rules output
c6b01cb Ensure newline in diff lexer
3289a10 improve http lexer
27b4ff3 add http lexer
9401ea9 Expand single and double quote string lexing in mysql, sql, and transactsql lexers


Automated with GoReleaser
Built with go version go1.9 linux/amd64

chroma - v0.2.0

Published by alecthomas almost 7 years ago

Changelog

d08da05 Add TeX/LaTeX support.
2e7e1e1 Extend lexers.Get() to support filenames.
9c81d25 Add svg support
75ce886 Import SCSS lexer from Pygments. Fixes #82.
ca4cfa5 README: Fix typo.
20d03ba Catch some static class in csharp lexer (#78)
5645597 Fix typo: translater → translator (#79)
3d8ce90 Select lexer with --filename argument (#77)
93868c5 Add Objective-C and support lexer priorities.
ac34ab1 Remove binary file and add to gitignore (#72)
d6eb27d Allow .mkd and .markdown (#73)
8533b63 quick: add an example (#70)
972d700 Allow for /usr/bin/env shebangs (#71)
03b0c0d Changed terminal16m to semicolons (#64)
02c4adc Add a chroma class wrapper when in "table mode" (#63)
4a55aef Adding HasClasses method for HTML formatter (#61)
6604d06 Regenerate TokenType stringer (#60)
6326cba Add test for EnsureNL.
27733ac Add table styled line numbers (#54)
92586fd Switch shell #! to preproc.
fd7f3ef Merge pull request #56 from kaushalmodi/add-nl-for-verilog-lexers
26632c8 Merge pull request #57 from kenshaw/add-ordering-to-styles-formatters
edf15b0 Fix order output of chroma cli tool
8f90f6d Add newline at eof for (system)verilog lexers
7f66cd3 Merge pull request #53 from alecnunn/master
7b1e9f5 Added basic Morrowind Scripting parsing
282a86e Merge pull request #50 from orivej/check
cd75199 Merge pull request #51 from orivej/nix
0d06c70 Add Nix lexer
feb2cdc Add --check flag to aid in lexer development
6d28166 Merge pull request #49 from FooSoft/toml-lexer
0f36e89 Add lexer for TOML
63889d5 Merge pull request #48 from Dekker1/feature/minizinc
8f804c9 Add lexer for MiniZinc
0e09609 Don't output trailing \n for HTML-only fragment.
ce3d6bf Invert default "ensure newline" behaviour so that it is opt-in.
573c1d1 Ensure a newline exists at the end of files.
528bed2 Fix some capitalisation.
a430eb8 Merge pull request #46 from DeedleFake/master
33f604c Always use CSS class from StandardTypes.
80d3b96 Ensure class names from default set exist.
2ca426a Make TypeMappingLexer a bit less prone to error.
cbc3d5b Implement special name mappings for EmacsLisp.
102aa61 Add RemappingLexer.
d3a2d28 Add WDTE.
c99eebc Merge pull request #39 from griffin-stewie/fix/capnproto_name
caf2542 fix HTML entity reference ' to ‘
7debecf Update README.
fc9897d Add SystemVerilog and hexdump.


Automated with GoReleaser
Built with go version go1.9 linux/amd64

chroma - v0.1.1

Published by alecthomas about 7 years ago

Changelog

bc2d668 Run gofmt -s over the codebase.
c39abfb Squish the GitHub style a bit.
be25514 Merge pull request #37 from steambap/master
e6a24f7 Add c# highlight fix #32
67b8161 Merge pull request #36 from AbeEstrada/patch-1
0f9e25c Add 'dracula' style
559a557 Merge pull request #34 from Calinou/rename-nimrod-to-nim
8604f25 Rename the Nimrod lexer to Nim
bdc1124 Switch to Pygments-style CSS class names.


Automated with GoReleaser
Built with go version go1.9 linux/amd64

chroma - v0.1.0

Published by alecthomas about 7 years ago

Changelog

2181aa5 Fix goreleaser config (hopefully).
a75ba5d Use goreleaser.
b0295f6 Remove spurious newline in HTML output.
022592b Correctly prioritise names over aliases.
cf0d471 Merge pull request #26 from glaforge/patch-1
cce6c8e Missing 'as' and 'in' keywords
b83a015 More YAML tweaks.
b25b614 Remove comment.
237eebb A naive YAML lexer.
c984ca4 Add html.BaseLineNumber(n).
d1be630 Merge pull request #25 from steambap/master
cff81ff Add GDScript lexer
0e1d1c1 Merge pull request #24 from rogersachan/patch-1
b3b9d8d Remove old license
1af7e1a Adjust line number padding a bit.
99d0e49 Simplify command-line flags a bit.
d5083b3 Big changes to the style and colour APIs.
9d7539a Fix bug in Turtle lexer.
a5a3b67 Reprocess all rules after a LexerMutator is applied.
8170d52 Remove dependency on go-colorful.
2ce2ec7 Fix bug with empty states.
0bb853f Convert Include to a LexerMutator.
f8658ed Add Restructured Text lexer.
e5fd873 Merge pull request #20 from sago35/fix-windows-color
1364bff Fix colors on windows
c279acf Merge pull request #19 from steambap/master
698bea1 Fix JavaScript keywords
1724aab Implement compile-time lexer mutators.
60797cc Add tracing + better error recovery.
e5e7b57 Fix style tests.
551f7ce Return errors for invalid styles, rather than panicking.
e59d463 Add async/await to JS lexer. Fixes #12.
4c6dba0 Add "monokailight" style.
fd4772d Merge pull request #11 from azillion/patch-1
1b9f70d Add missing letter
e2d6aba Document and add iterator panic recovery.
cc0e4a5 Switch to an Iterator interface.
36ead72 Use utf8.RuneCountInString() rather than len() :(
3f941dd Correctly add styles for line numbers and line highlights when inling.
44b23f9 Split Regexp lexer into its own file.
a5637e6 Support for highlighting ranges of lines.
3f230ec Add support for line numbers.
feb78ed Combine HTML formatting functions.
b57f8a4 Update list.
2b1ffff Add missing Genshi variants.
a729603 Add test to pre-compile all regexes.
87183b3 Add HTML formatter option for setting the tab width.
631fc87 Fix lua lexer, and actually check error value from compiling regexes :(
00d5486 Add lexers.MatchMimeType(mimeType).
d80c30a Sort formatters and styles Names().
04782e0 Add doc.go.
c259129 Rename "raw" to "tokens", as it makes more sense.
affaf50 Add lower-case '*.r' glob for R.
b24f936 Update list of languages in README.
3df4c80 Rename S -> R + sort list of lexers.
fbc889a Correct HTML output + add R/S.


Automated with GoReleaser
Built with go version go1.9 linux/amd64