1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-27 21:49:13 +02:00

74 Commits

Author SHA1 Message Date
Alec Thomas
d0e811c0ef
fix: use a class with line links when requested ()
Fixes 
2022-10-31 23:28:30 -07:00
Maas Lalani
f0bac8cfd0
Lexer for VHS () 2022-10-28 14:52:43 -07:00
Alec Thomas
06f7007f02 Update READMEs to be more obvious about XML lexers. 2022-10-28 20:54:42 +11:00
cjprieb
b2a2ba5a50
added lexer for PSL () 2022-10-18 15:57:56 -07:00
Thomas Voss
b7c7bdbe65
Add a lexer for sed () 2022-10-07 18:19:15 -07:00
KOBAYASHI Yū
65c601bb6f
Add HLSL language support () 2022-10-05 17:12:32 -07:00
Martin Winandy
6138519d55
Add properties to supported languages () 2022-09-16 01:14:11 -07:00
Danila Fedorin
f941d464e2 Add Chapel Lexer 2022-06-23 10:53:42 +10:00
Ted Summer
d9c7dea1e6 docs(readme): fix call to WithClasses 2022-01-30 06:37:08 +11:00
Jelle Hulter
b01c8fcab6
Added OpenEdgeABL lexer () 2022-01-04 03:22:50 +11:00
Martin Stühmer
202379826e
feat: Added .bicep lexer () 2021-10-23 21:48:00 +11:00
Dmitry Titov
02951cec42
Implement 1S:Enterprise () 2021-09-04 10:20:45 +10:00
Alec Thomas
7966c29526
Update README.md 2021-08-01 21:51:06 +10:00
Alec Thomas
61cfd7d7a7
Update README.md 2021-08-01 21:50:36 +10:00
Alec Thomas
594e3117f8
Update README.md 2021-08-01 21:49:50 +10:00
David McClure
21a1750dc2 Remove go get for installation from README
Per: https://github.com/alecthomas/chroma/issues/528#issuecomment-866370115

> Use the release binaries. go get is not supported anymore.
2021-06-24 08:22:35 +10:00
Ville Skyttä
d964e7c774
pygments2chroma updates () 2021-05-19 08:15:25 +10:00
Ville Skyttä
e87e5b2208 cmd: add optional silent fail mode on no specific lexer
Makes use of chroma easier in/as less(1) preprocessors.

https://manpages.debian.org/less#INPUT_PREPROCESSOR
  export LESSOPEN='| p() { chroma --fail "$1" || cat "$1"; }; p "%s"'

https://manpages.debian.org/lesspipe#USER_DEFINED_FILTERS
  ln -s ~/go/bin/chroma ~/.lessfilter
2021-05-09 08:46:49 +10:00
Ville Skyttä
15f2498398 lexers: add one for groff
Generated from Pygments one, some filename extensions added.
2021-05-06 10:08:01 +10:00
mlpo
ba03a8b276 Use Python 3 by default 2021-05-05 14:44:48 +10:00
Siavash Askari Nasr
d4eca2a5b3
Svelte Lexer Improvements () 2021-04-28 17:34:34 +10:00
Siavash Askari Nasr
9de08fc6c8
Add Raku lexer () 2021-04-28 08:55:14 +10:00
Alec Thomas
f235772881 Update Slack link. 2021-04-25 08:02:56 +10:00
Carl Gay
eb257ed1bb Add a Dylan lexer 2021-04-07 15:27:41 +10:00
Carl Gay
a9e4a4ebe5 Fix link to pygments-lexers.txt
Was labelled as pygments-lexers.go
2021-04-03 16:59:56 +11:00
Pablo SEMINARIO
74f5402d5e Update table of supported languages 2020-11-12 11:03:15 +11:00
Alvaro Aleman
ab61726cdb Make linkeable lines a link to themselves
Currently its already possible to make line lumbers linkeable. Getting
such a link however requires the end user to look at the pages source
and then to manually edit the URL, which is not a great UX.

This PR changes that to make the line numbers a link to themselves, so
clicking on them gives a link to that line that can then be passed
around, similiar to e.G. GitHub.
2020-11-03 21:31:04 +11:00
Alec Thomas
a49e74490b Spacing. 2020-10-29 19:36:17 +11:00
Alec Thomas
37ff05cdbd Really. 2020-10-29 19:32:06 +11:00
Alec Thomas
ee34bb8a3e Fix README? 2020-10-29 19:24:10 +11:00
Alec Thomas
1701c8b214 Switch to Circle. 2020-10-29 19:21:20 +11:00
Jacques Pienaar
110f671e7c Update languages supported 2019-12-28 16:25:08 +11:00
Alexandru Băluț
a41c89767d Add the option of making the line numbers linkable 2019-12-12 17:31:43 -08:00
κeen
67fb64311a add SML lexer () 2019-12-01 23:17:22 -08:00
Sean McGivern
a1c4eaa235 Add J lexer
Generated with _tools/pygments2chroma.py.

Sample `toupper` verb from `stdlib.ijs`:
https://github.com/jsoftware/jsource/blob/j808-release/jlibrary/system/main/stdlib.ijs
2019-10-22 07:23:06 +11:00
Jos512
d122d30d7b Add ABAP lexer 2019-09-20 07:52:50 +10:00
Alec Thomas
7a7fde259b Split out chromad resources. 2019-07-16 15:45:06 +10:00
Alec Thomas
1a13c19115 Add HCL lexer. 2019-06-17 22:51:52 +10:00
Bardi Harborow
e10834d052 README adjustments ()
* Update README.md badges to SVG.

* Change hyphen to em dash.

* Add highlight language to shell commands.
2019-02-27 23:00:55 +11:00
Jos512
c53abb037b Add Arduino lexer 2019-02-03 09:07:29 +11:00
Adam Scarr
4b6319e2ab Add basic graphql support 2019-01-24 14:12:19 +11:00
Jos512
3c6b341f5a Add additional information about style to README 2019-01-23 20:31:45 +11:00
Jos512
e9d4ea1fe5 Add missing lexers to README
And also more alphabetically.
2018-09-21 22:27:42 +10:00
Jos512
a24ed6d984 List lexers in README in table ()
This makes it easier to scan through the line and add new lexers in the future.
2018-09-21 18:01:03 +10:00
Jos512
fccc5bb5f5 First version of TradingView lexer
Treat ( and ) as text in lexer

Added test files and small change of lexer

Fixed 'err' messages in Chroma output

Removed postfix behind numbers

Was originally from C# lexer, but not needed for TradingView

Improved single comment, punctuation, and operator

Simplified text match, improved punctuation and operators

Add slash to punctuation

Added missing named variables

Added proper test data with .expected file

Added TradingView lexer
2018-09-10 20:10:06 +02:00
Kaushal Modi
e4dff9a08c Add Org mode lexer (https://orgmode.org)
Fixes https://github.com/alecthomas/chroma/issues/40.
2018-07-31 15:06:05 -04:00
James Turnbull
91b12285fd Added Ballerina - https://ballerina.io () 2018-07-23 12:28:37 +10:00
Alec Thomas
e80511cc8c Document LineNumbersInTable(). 2018-06-25 20:04:04 +10:00
Alexander F Rødseth
17c7658a6a Add link to the Chroma Style Gallery 2018-04-09 20:15:14 +10:00
Peter Schultz
6b1131c006 Fix package name in README. 2018-04-04 23:22:54 +10:00