chroma

A general purpose syntax highlighter in pure Go

MIT License

Downloads
91
Stars
4.2K
Committers
239

Bot releases are visible (Hide)

chroma - v2.14.0 Latest Release

Published by github-actions[bot] 5 months ago

Changelog

  • 1e983e7 lexers/cue: support CUE attributes (#961)
  • 9347b55 Add Gleam syntax highlighting (#959)
  • 6b7ffe1 chore(styles): add tokyonight inspired styles (#957)
  • 736c0ea Typescript: Several fixes (#952)
  • e5c25d0 Org: Keep all newlines (#951)
  • d07caa4 chore(deps): update module github.com/alecthomas/assert/v2 to v2.7.0 (#949)
  • 5f83664 Vue: Handle more edge cases (#950)
  • 32c053f chore(deps): update all non-major dependencies (#948)
  • 2580aaa Add Bazel bzlmod support into Python lexer (#947)
chroma - v2.13.0

Published by github-actions[bot] 7 months ago

Changelog

  • bd47355 fix: include compress state in style cache key
  • 1235bbf chore(deps): update all non-major dependencies (#944)
  • 4e60c81 C#: Allow for empty comments (#943)
  • fe5dde8 Add Lexer for NDISASM (#933)
  • 6dd9f26 feat: introduce a LRU compiled style cache for the HTML formatter (#938)
  • 898d467 lexers/cue: support definitions and dollars in field names (#935)
  • 0f92de4 chore(deps): update all non-major dependencies (#934)
  • 381050b Major updates to Caddyfile lexer (#932)
  • e9292e6 chore(deps): update dependency goreleaser to v1.24.0 (#925)
  • ddbae13 chore: upgrade Go
  • 7ce2caf Fix lexers check when built with newer Go (#928)
  • 506e36f fix(lexers/go): "~" is a valid token (#926)
  • f4788c0 docs: add import to README
  • 39115eb chore(deps): update dependency esbuild to v0.20.0 (#921)
  • 4c6fdb1 Add .avsc to JSON lexer (#920)
  • ee60f7e Add missing token types for Rego + add Rego to README (#919)
  • ae36e63 Add support for Rego syntax (#918)
  • d7a7dd3 chore(deps): update module github.com/alecthomas/assert/v2 to v2.5.0 (#917)
  • c31293c chore(deps): update dependency go to v1.21.6 (#915)
  • ebc34cf fix file extension typo, remove redundent parens (#914)
  • 641b06f Fix type operators not being recognised in Haskell (#913)
  • 3ef9475 chore(deps): update dependency watchexec to v1.25.1 (#912)
  • 23368be styles(catpuccin/gh-dark): LineHighlight grp (#911)
  • a8704a8 Add lexer for RPMSpec (#907)
  • eb47752 Add lexer for Promela (#906)
  • 3f395c9 chore(deps): update all non-major dependencies (#905)
  • 2018c2f chore(deps): update all non-major dependencies (#904)
  • 016768b Add desktop entry lexer (#903)
  • f130045 chore(deps): update dependency watchexec to v1.24.1 (#901)
  • 9670d34 chore(deps): update actions/checkout action to v4 (#899)
  • ad03817 chore(deps): update all non-major dependencies (#898)
  • 76039a5 chore(deps): update all non-major dependencies (#897)
  • 678b799 Add a lexer for the Materialize SQL dialect (#896)
chroma - v2.12.0

Published by github-actions[bot] 11 months ago

Changelog

  • c74f557 Add renovate
  • d77dc8a Add Hare lexer (#882)
  • 2346007 Add an Alloy lexer (#892)
  • 08be6f0 Add an Agda lexer (#891)
  • d9f6ed6 added: rule to objectpascal lexer (#888)
  • c5948a6 Add Vagrantfile to Ruby lexer (#890)
  • 7d4db86 Add Microsoft Dax (#889)
  • 1cda665 fixed: number formats in objectpascal lexer (#887)
  • b5afdee fix(dns): highlight domain names as NameClass (#886)
  • 07a90a9 added: ObjectPascal lexer (#883)
chroma - v2.11.1

Published by github-actions[bot] 11 months ago

Changelog

  • 96a12e3 fix: bad path normalisation
chroma - v2.11.0

Published by github-actions[bot] 11 months ago

Changelog

  • 09953ff fix: attempt to load lexer files before using Get()
chroma - v2.10.1

Published by github-actions[bot] 11 months ago

Changelog

  • fe96ea4 Add test for ucode (#881)
  • 8f938d0 Create lexer for ucode (#879)
  • 038fab5 Add shebang (#864)
  • 48d6be6 Update prql.xml (#878)
chroma - v2.10.0

Published by github-actions[bot] 12 months ago

Changelog

  • 810464a Update Java lexer (#873)
  • 77e9146 Add file extensions to go_template lexer (#875)
  • b127e35 Make tty_indexed.go respond to None like tty_truecolour.go (#869)
  • 9ae4dae Add *.Dockerfile to docker lexer (#868)
  • 2fa6f14 Add PRQL to README (#863)
  • 17597b6 Add PRQL language (#862)
  • 7eb0305 lexers/r: Match keywords prior to functions (#860)
  • 827bd93 lexers: add initial version of CUE lexer (#858)
  • 9087c63 docs: note about Get() being slow due to file matching
  • ccd8d68 lexers: move to comparing bytes in tests (#856)
  • def00e9 chore: update issue templates
  • 0b08639 lexers: support for nim GENERALIZED_TRIPLESTR_LIT (#853)
  • 94d11ab Update Bicep grammar with recent additions (#850)
  • c64e1be add justfile filename to Makefile lexer (#852)
  • 2b39461 Fix GDScript3 analyse regexes (#848)
chroma - v2.9.1

Published by github-actions[bot] about 1 year ago

Changelog

  • c4527e8 fix: C++ comments after #include
chroma - v2.9.0

Published by github-actions[bot] about 1 year ago

Changelog

  • 40542a6 refactor: migrate a bunch more Go-based lexers to XML
  • 4dd2cbe fix: bump to latest dclark/regexp2
  • a242abf Highlights numbers in java (#703)
  • 6ddeee2 update fg color to match latest primer style (#781)
  • 340fd85 Add more hlsl file extensions (#823)
  • 67983f9 Update clojure.xml to target EDN (#825)
  • 6428fb4 Added updated GDScript lexer. (#842)
  • 4796a27 Set priority for NASM lexer (#839)
  • be65257 Set priority for INI lexer over Inform 6 (#837)
  • b5487f4 Fix Bash Session lexer name (#840)
  • c03a781 Set priority for GAS lexer (#838)
  • 0fe72e1 Add new file extensions to Mathematica lexer (#836)
  • 5b26de0 Add missing *.twig file extension (#833)
  • 9676003 R lexer has priority over Rebol (#835)
  • efd5efa Avoid duplicate lexer if already registered (#834)
  • 954c5ae feat: ensure the analyse score is up to 1.0 (#832)
  • 708662a feat: improve regex analysers in XML (#831)
  • d37de78 feat(styles/onedark): add diff colors (#830)
  • c11725d Add new Go 1.21 builtins to the Go lexer: clear, min, max (#829)
  • 47ce9a2 fix: vim lexer was marking \n as errors
  • a20cd7e feat: support basic regex analysers in XML (#828)
  • 2226663 Fix ISCdhcpd filename (#822)
  • 7d74956 Add Pipfile and poetry.lock as a TOML lexer file extension (#821)
  • 42d6da2 Add .eex as a Elixir lexer file extension (#820)
  • b786c3f Add .tpp as a c++ lexer file extension (#817)
  • de3a9c2 Add C lexer (#815)
  • 49b5f8e Add missing C++ tests (#814)
  • e6de3d1 Add CPP lexer (#813)
  • 68d976f Prevent panic from hax lexer (#812)
  • 2aad740 Update C# lexer (#811)
  • 9864526 deps: update go modules (#810)
  • 95cec3b Update groovy.xml (#807)
  • 555bb53 Add Lexer for Sourcepawn (#804)
  • b8c853d Fix attributes and <, > in Odin Lexer (#803)
  • e1e698d Add Odin lexer (#802)
  • b8ad4d6 chore: unnecessary use of fmt.Sprintf (#799)
  • b9a63eb chore: remove refs to deprecated io/ioutil (#798)
  • 0e7ec95 styles/catppuccin-*: update colors (#797)
  • 971f5c6 Add file support for BIND DNS Zone (#796)
chroma - v2.8.0

Published by github-actions[bot] over 1 year ago

Changelog

  • e8acfc2 Add lexer for ArangoDB Query Language (AQL) (#794)
  • e422a62 Add tal (uxntal) lexer
  • 4b11965 lexers/d: Update keyword lists
  • be82a0b improve PSL directive and function highlighting
  • bf8d359 FIX: update nord theme to have a base color for NameProperty
  • f720d5a FIX: update nord theme to have a base color for NameOther
  • 3c21942 support http response with no reason phrase
  • 029798b Add AutoIt Lexer
  • 4779f90 Add AutoHotkey lexer
  • e09e498 lexers/go_template: Add missing global functions (#782)
  • dcc587e wgsl: Fix typo for texel format rgba16float (#779)
  • 8588e37 Update iscdhcp xml file (#778)
  • 7c08f45 Update the main README to point to the lexers/README (#777)
  • 0eecb2a Add WebGPU Shading Language lexer (#776)
  • 4f02bc5 support HTTP/2 and HTTP/3 (#774)
  • 357f0cb dhcpd (#772)
  • 2672d3c Add Smali lexer (#765)
chroma - v2.7.0

Published by github-actions[bot] over 1 year ago

Changelog

  • b9e3758 Upgrade goreleaser.
chroma - v2.6.0

Published by github-actions[bot] over 1 year ago

Changelog

  • f995707 cfengine3 xml: add $(..) to match NameVariable (#768)
  • cc132ed cfengine3 (#766)
  • 7e30655 Allow custom XML lexers and styles to be loaded from the command-line.
  • 0d91785 Upgrade go + golangci-lint
  • b831d1b Groovy added a 'record' type and keyword in version 4 (#764)
  • 42c314d Raku: Change the token type of builtin types to KeywordType (#759)
  • 96a518b [Python]Add match and case to Keywords (#756)
  • ecb69ce Add Note about testing lexers to Readme (#757)
  • 3131088 Fix Playground on Windows (#758)
  • 22f3c60 styles/vulcan: Fix background color (#753)
  • ba01b92 Add support for Z80 assembly (#751)
  • 3ac94ee Add HolyC support (#750)
  • 1d0ed7f increase php priority over phtml
  • a40c95e Add support for Natural language
chroma - v2.5.0

Published by github-actions[bot] over 1 year ago

Changelog

  • 4bfa1bb Rust: Add initial support for string interpolation
  • f5f48e2 Rust: Generalize declaritive and function-like macros (#742)
  • 55b0e59 Rust: Attempt to lex constant idents (#741)
  • 87869f8 Fix rust byte char capture (#740)
  • 0ea6503 Rust: Include starting apostrophe in lifetime / loop label token (#739)
  • 633f8e0 Removes 'tabindex="0"' from `' elements
  • 3d1bc51 add missing type suffixes for nim
  • d5b3291 Add default diff support (#732)
  • db073d8 deps: Bump modules for cmd/chromad
  • 4553686 deps: Bump go modules for cmd/chroma
  • 366b9db deps: Bump go modules
  • 482cb62 [Rust] Fix string whitespace skip
  • 4aaf294 Update issue template to reference playground shareable links
  • 5ca7345 fix: inconsistent YAML multiline parsing (#475)
  • d330b76 feat: support sharing in playground
  • 0e2db44 Add -webkit-user-select: none; to support Safari
  • 45e3bfb Convert bashsessions lexer to XML
chroma - v2.4.0

Published by github-actions[bot] almost 2 years ago

Changelog

  • aecedef Rename 'Base Makefile' lexer to 'Makefile'
  • 740e4b8 Add systemd .service and .socket to ini lexer
  • f07788e More improvements to PowerShell lexer (#708)
  • 94d7858 Create Onedark theme (#704)
  • 42e5421 Improved PowerShell lexer (#700)
  • 16fd666 Fix a bug that ate functions ;) (#702)
  • ee9558d Update c.xml
  • 877797e fix: add CSS gap property
  • 5644f41 Add lexer for BQN (#691)
  • 71d4be6 Lexer support for the stas language (#699)
  • be4aebd Add Vala Lexer (#697)
  • d6ea504 Classify object names and enum names as class names
  • 6ca7db7 Fix typo
  • be6230c Update Rose-pine style
  • ebba701 feat: add MustNewXMLStyle
  • c263f6f feat: XML style definitions (#693)
  • b264397 fix: ensure HTML flags apply to --html-styles
  • d0e811c fix: use a class with line links when requested (#692)
  • 5e27ea4 Update Catppuccin for all variants (#687)
  • f0bac8c Lexer for VHS (#690)
  • 06f7007 Update READMEs to be more obvious about XML lexers.
  • 9b9b245 Feat: Add Rosé-Pine variants (#689)
  • b2a2ba5 added lexer for PSL (#688)
  • 40b7a91 Upgrade project to Go 1.19 and switch to alecthomas/assert/v2
  • b338844 add catppuccin mocha
  • b7c7bdb Add a lexer for sed (#682)
  • 5559bcc Add support for F# open static class
  • 396f572 fix: parse all of @foo.bar as a Python decorator
  • 750df98 style: reformat Whiley expected testdata
  • d0d94c2 Revise the fortran lexer to correctly flag whitespace for "DO CONCURRENT" and "GO TO", and to correctly flag the word boundary of keywords.
  • c56819b Fixed OpenEdgeABL String literals (#652)
  • 48a2af1 Update UsingByGroup documentation
  • 739028e Add pygments2chroma_xml.py
  • 65c601b Add HLSL language support (#675)
  • cbe8b53 Add Modus Operandi (light) theme
  • 5b957aa Add Modus Vivendi (dark) theme
  • f3aeb99 Add .editorconfig
  • 1da7ff5 Add .pylintrc to ini lexer
  • d38b871 Add linkable line number option to CLI
  • 9ac9b11 Add .mts,.cts to typescript lexer (#677)
chroma - v2.3.0

Published by github-actions[bot] about 2 years ago

Changelog

  • 6138519 Add properties to supported languages (#674)
  • a238967 Improve properties file lexer (#671)
  • a531e40 Add lexer for properties files (#670)
  • dbb09a5 Add Colour.ClampBrightness and StyleBuilder.Transform.
  • e1a35d4 transact-sql: added functions string_agg and concat_ws to lexer
  • 3f86ac7 Add Gruvbox light theme
  • d55b06c Bump testify, repr to the latest version (#665)
  • 4fa270a Update GAS lexer (#661)
  • cde3818 Update mcfunction lexer to support newer spec of commands
  • 6538430 cfengine3: Removed rule attempting to highlight variable names
  • 111921a Add cjs to Javascript lexer
  • c13ff14 fix(styles/github-dark): update definitions, reformat
  • 96fe58e Add BSDmakefile to make lexer (#654)
  • c714e84 add(styles/github-dark): github's dark colorscheme for chroma (#653)
  • 3b326be Add Dockerfile.* to docker lexer
  • 5ce1d5d lexers: Add BIND DNS Zone lexer
  • f941d46 Add Chapel Lexer
  • 298b727 Revise fortran fixed format lexer to recognize comments using the "!" mark in columns 1-5 and columns > 6. Remove incorrect "0" label being a comment.
  • 9a038fb Revise fortran lexer to be consistent with the current version in pygments
chroma - v2.2.0

Published by github-actions[bot] over 2 years ago

Changelog

  • d18e8a4 Add InlineCode option for inline code blocks
chroma - v2.1.0

Published by github-actions[bot] over 2 years ago

Changelog

  • 530c45d Don't append semicolon to styleEntry if there is no other style
  • 5397b48 Append semicolon to tabWidthStyle.
  • c78b8a6 Fix extra semicolon in tabWidthStyle
  • 806ca29 Add V lexer (#640)
chroma - v2.0.1

Published by github-actions[bot] over 2 years ago

Changelog

  • 4dfc2ca refactor: run go mod tidy on chromad
chroma - v2.0.0

Published by github-actions[bot] over 2 years ago

Changelog

  • d13d611 Add value keyword for Kotlin
  • dea6a13 Add CSS style inheritance to WithCustomCSS option
  • 7d77940 [html formatter] Add option to let users provide custom CSS styles
  • 7cc13cf Add support for F# package reference + Fix CommentPreproc detection (#631)
  • 073a30b Add Whiley Lexer (#628)
  • 44d1d23 fix: revert line change from pygments converter
  • d070b1c Fix for C# identifiers with leading underscores
  • f7d2bb0 fix: pin to Go 1.17 for now
  • f7893bc add an average rgb scheme
  • 7bfe2f4 fix: add Dart required keyword
chroma - v2.0.0-alpha4

Published by github-actions[bot] over 2 years ago

Changelog

  • 647b7a6 fix: release binaries