rouge icon indicating copy to clipboard operation
rouge copied to clipboard

A pure Ruby code highlighter that is compatible with Pygments

Results 257 rouge issues
Sort by recently updated
recently updated
newest added

This PR adds a port of [pygments-routerlexers](https://github.com/nemith/pygments-routerlexers). The regexes largely come from `pygments-routerlexers` with a few changes to make them more consistent. Included sample files are from a writeup on...

This commit adds `.ruby-version` and `.ruby-gemset` to the `.gitignore` for this project, so that folks using RVM or rbenv (or other tools that may also use these files) won't accidentally...

**Name of the lexer** Toml **Code sample** ``` [tool.poetry.dependencies] idna = "3.4" inflection = "0.5.1" influxdb = "5.3.1" requests = "2.28.1" ``` http://rouge.jneen.net/v4.0.0/toml/W3Rvb2wucG9ldHJ5LmRlcGVuZGVuY2llc10KaWRuYSA9ICIzLjQiCmluZmxlY3Rpb24gPSAiMC41LjEiCmluZmx1eGRiID0gIjUuMy4xIgpyZXF1ZXN0cyA9ICIyLjI4LjEiCg The "inf" at the beginning of `inflection`,...

bugfix-request

The only escape is "" -> ". As with previous contributions, I don't know much ruby, so improvements are welcome.

**Name of the lexer** Pascal **Code sample** ``` class a { $test = 'var' } ``` I can't provide a useful code sample link, because this is a filetype detection...

bugfix-request

This PR adds a lexer for the [jq](https://stedolan.github.io/jq/) language, which can filter and transform JSON data. ![image](https://user-images.githubusercontent.com/36665200/185743234-5692bb37-8818-4d41-b7d4-6dc5fc3cf78c.png) I referred these pages below for lexing rules. - official manual: https://stedolan.github.io/jq/manual/ -...

This is an initial work deriving from current Rouge::Lexer::Perl, and using keyword data from https://docs.perl6.org and https://github.com/perl6/perl6-mode. In all likelihood though, this might just derive directly from Rouge::Lexer::RegexLexer instead and...

are given a special color in sublime text, and other syntax highlighters: Currently just categorized as generic `Name` I believe. Same for keyword arguments.

lexer-request

The new lexer uses sets of keywords to quickly categorize names and uses regular expressions for other elements like numbers and punctuation. Closes #2024

**Name of the lexer** Vue **Code sample** ``` « ``` **Additional context** v-on:click shorthand @click produces error, even though it is OK or even preferred (_"We can use the v-on...

bugfix-request