summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | Some commentsŠarūnas Navickas2020-09-081-1/+5
| | | | | |
| | * | | | Add to languages listŠarūnas Navickas2020-09-081-0/+1
| | | | | |
| | * | | | Fix mappingŠarūnas Navickas2020-09-081-1/+1
| | | | | |
| * | | | | Add example file for ritaSarunas Navickas2020-09-081-0/+8
| |/ / / /
| * | | | Initial versionSarunas Navickas2020-09-083-0/+78
| | | | |
* | | | | Update mappings, CHANGES.Matthäus G. Chajdas2021-12-282-1/+2
| | | | |
* | | | | feat(lexers): add more man page filename globs (#1801)Ville Skyttä2021-12-281-1/+1
| | | | | | | | | | | | | | | Numbered ones go up to 9, Perl ones may have 1p or 3pm suffixes.
* | | | | Update CHANGES.Matthäus G. Chajdas2021-12-281-0/+1
| | | | |
* | | | | feat(lexers): associate XBM and XPM with C code (#1802)Ville Skyttä2021-12-282-3/+3
| | | | |
* | | | | Update CHANGES, contrast for friendly grayscale.Matthäus G. Chajdas2021-12-283-2/+5
| | | | |
* | | | | Add "friendly grayscale" theme (#1273)Oliver Kopp2021-12-283-0/+77
| | | | | | | | | | | | | | | Fixes https://github.com/pygments/pygments/issues/1040
* | | | | Update CHANGES, add test for #1981.Matthäus G. Chajdas2021-12-283-0/+145
| | | | |
* | | | | Improve objdump-nasm lexer (#1981)Pwilke2021-12-281-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update asm lexer for --no-show-raw-insn * Update asm lexer for #-style comments in Nasm Co-authored-by: Pierre Wilke <pierre.wilke@centralesupelec.fr>
* | | | | Update CHANGES.Matthäus G. Chajdas2021-12-281-0/+1
| | | | |
* | | | | Merge pull request #1804 from Cl00e9ment/masterMatthäus G. Chajdas2021-12-281-1/+1
|\ \ \ \ \ | | | | | | | | | | | | ABNF rulename can be 1 character wide
| * | | | | fixed typoClément Saccoccio2021-05-131-1/+1
| | | | | |
* | | | | | Merge pull request #1999 from not-my-profile/instant-demoMatthäus G. Chajdas2021-12-285-149/+367
|\ \ \ \ \ \ | | | | | | | | | | | | | | Make the demo awesome
| * | | | | | demo: remove Highlight button (update automatically)Martin Fischer2021-12-263-22/+53
| | | | | | |
| * | | | | | demo: limit height of formatted code (overflow)Martin Fischer2021-12-261-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For large files it's better to have a viewport because then you can view both the form as well as the part of the output you are interested in at the same time.
| * | | | | | demo: display warning for styles with poor contrastsMartin Fischer2021-12-263-1/+13
| | | | | | |
| * | | | | | demo: support tokens formatterMartin Fischer2021-12-264-7/+66
| | | | | | |
| * | | | | | demo: save and load style to/from URLMartin Fischer2021-12-261-16/+24
| | | | | | |
| * | | | | | demo: streamline interface (and improve accessibility)Martin Fischer2021-12-262-27/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * "Try out Pygments!" is more descriptive than "Try it out!" * Moved the description of the implementation to the end. * Added a <noscript> tag suggesting `pip install` and pygmentize. * Added a <label> for the textarea. * Disable spell checking for the textarea. * Reduced the scope of the reset button to the file input. * Added autofocus for the language select.
| * | | | | | demo: fix lexer guessing based on filenameMartin Fischer2021-12-263-15/+11
| | | | | | |
| * | | | | | demo: use URLSearchParams browser APIMartin Fischer2021-12-261-19/+8
| | | | | | |
| * | | | | | demo: clean up markupMartin Fischer2021-12-262-16/+24
| | | | | | |
| * | | | | | demo: instantly apply style changes by avoiding re-lexingMartin Fischer2021-12-264-17/+42
| | | | | | |
| * | | | | | demo: promote styles with a good contrastMartin Fischer2021-12-262-6/+14
| | | | | | |
| * | | | | | demo: guess lexer if none selectedMartin Fischer2021-12-264-42/+74
| | | | | | |
| * | | | | | demo: disable copy link when URI too long for web serverMartin Fischer2021-12-262-3/+16
| | | | | | |
| * | | | | | demo: stop using deprecated Document.execCommand()Martin Fischer2021-12-262-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the modern navigator.clipboard API instead.
| * | | | | | demo: stop blocking main thread by using web workerMartin Fischer2021-12-263-43/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously highlighting a large file with a complex lexer just hung the whole browser tab (meaning you couldn't interact with the page anymore). This commit outsources the higlighting to another thread by using a web worker. Depending on web workers shouldn't reduce browser compatability since the page already depends on WASM (and according to caniuse.com any browser that supports WASM also supports web workers).
| * | | | | | demo: make form usable while Pyodide is loadingMartin Fischer2021-12-264-49/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the form could only be filled out after Pyodide finished loading (since the <select> options were generated via Pyodide). This commit changes this, so that the <select> options are already in the static HTML. The "Loading Python..." form overlay is removed, instead just the Highlight button is disabled, letting users fill out the form while Pyodide is loading. When a ?code query parameter is given a "Loading Python..." message is displayed below the form, since in that case users probably want to wait for the highlighted code (instead of filling out the form).
* | | | | | | Update CHANGES.Matthäus G. Chajdas2021-12-281-1/+1
| | | | | | |
* | | | | | | Refine the One Dark theme a bit for consistency with other popular projects ↵ranelpadon2021-12-281-15/+15
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Atom, Vim, Alacritty, etc) using the same theme (#1979) * Refine the One Dark a bit, for consistency with other projects using One Dark. * Revert the unintentional change in Operator's bold style.
* | | | | | Linkify GitHub issue/PR numbers in changelog (#1998)Martin Fischer2021-12-231-1/+18
| |_|/ / / |/| | | |
* | | | | Update CHANGES, language list.Matthäus G. Chajdas2021-12-122-0/+2
| | | | |
* | | | | Lexer for new language Elpi (#1894)Enrico Tassi2021-12-127-0/+453
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lexers: add Elpi * test: elpi * Fix copyright * address code review
* | | | | Update CHANGES.Matthäus G. Chajdas2021-12-121-3/+13
| | | | |
* | | | | Add missing keywords (Vernacular commands and tactics) for the Coq lexer (#1984)Kazuhiko Sakaguchi2021-12-101-9/+10
| | | | |
* | | | | Update dependencies.Matthäus G. Chajdas2021-12-061-0/+1
| | | | |
* | | | | Update CHANGES.Matthäus G. Chajdas2021-12-061-0/+1
| | | | |
* | | | | Merge branch 'dschwoerer-master'Matthäus G. Chajdas2021-12-06133-740/+284
|\ \ \ \ \
| * | | | | Update HTML tests.Matthäus G. Chajdas2021-12-06132-739/+282
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes a new structural diff which is more robust, as it handles changes like different attribute order.
| * | | | | Merge branch 'master' of https://github.com/dschwoerer/pygments into ↵Matthäus G. Chajdas2021-12-061-1/+2
| |\ \ \ \ \ |/ / / / / / | | | | | | | | | | | | dschwoerer-master
| * | | | | Add links to lines with css-line numbersDavid Bold2021-11-261-1/+2
| | | | | |
* | | | | | Fix typo, update CHANGES.Matthäus G. Chajdas2021-12-062-1/+2
| | | | | |
* | | | | | Clarifying some documentation (#1928)Arthur Milchior2021-12-065-19/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * NF: adding an example of use of simple filter @simplefilter is great, but also not very intuitive. Indeeds, the syntax seems to indicate that you define a function with four arguments while in reality you define a class whose constructor takes arbitrary keyword arguments. I believe in this case an example to show how to instantiate this filter is really necessary. Regarding simplefilter, I also believe that it could be improved in two simple ways: * accepting any method which takes lexer and stream as a filter. That would be sufficient as long as there is no option * the @simplefilter decorator could deal with `self` so that the user do not have to add it themselves. Probably not worth doing it no, as it would break compatibility with current version, but would be even simpler to use * NF: clarifying get_..._options get_bool_opt's documentation seems to indicate that the key is interpreted as a Boolean. While a quick look at the code shows clearly that the value associated to the key is what is interpreted as a Boolean. I hope I made the code clearer to any people who know python by indicating that it is essentially `.get` but with extra features * NF: clarifying Filter `filter` has already a specific behavior in general python, or for any people used to functional programing (and even if some dom processor). So indicating that a filter is not something that remove some tokens seems really useful to try to explain what is going on. * NF: adding details regarding states in lexer I found the state explanation confusing. I do know what a state machine is. However, reading the code, I first thought that there were two distinct variables: * the current state * the stack that are somehow related but distinct. Explaining that the current state is the top of the stack was lacking in my opinion. That also help explain #push. In particular that if you define in state "s" an operation whose new state is "#push", the behavior can be quite different than if the new state was "s".
* | | | | | Merge branch 'chillibits-master'Matthäus G. Chajdas2021-12-067-0/+295
|\ \ \ \ \ \
| * | | | | | Fix whitespace handling, update CHANGES.Matthäus G. Chajdas2021-12-063-77/+78
| | | | | | |