rouge
rouge copied to clipboard
A pure Ruby code highlighter that is compatible with Pygments
Hello, is there a way to customize the displayed width of tabs to 4 spaces? If not, where is the best place to add the custom behavior?
This commit reduces to zero all warnings generated internally by Rouge when Ruby is run with warnings enabled.
Upon reviewing the lexer build for q (kdb+), there was quite a few of the keywords/operators missing from the lexer file. Complete set of keywords, operators and system commands available...
Those happened in C# language versions 6 through 9. I've mostly tested these additions visually (using `rackup`). Tests (`rake`) all pass. Here's a quick summary with links to official documentation:...
**Name of the lexer** Protobuf **Code sample** A sample of the code that produces the bug. ```proto message Person { map person_id = 1; } ```  A link to...
This issue is similar to #621 or #831 where the Unicodes are highlighted with a bold concrete background (I guess it's an error?). It looks like #621 is fixed by...
**Is your enhancement request related to a problem? Please describe.** The Puppet lexer does not support string interpolation (see [this comment](https://github.com/rouge-ruby/rouge/pull/1288#issuecomment-516270580)). **Describe the solution you'd like** The Puppet lexer would...
Docs introduce themes like this: ``` # Get some CSS Rouge::Themes::Base16.mode(:light).render(scope: '.highlight') # Or use Theme#find with string input Rouge::Theme.find('base16.light').render(scope: '.highlight') ``` Then say you can do this Rouge::Formatters::HTMLInline.new(theme) ok,...
This PR adds a lexer for the [Savi programming language](https://github.com/savi-lang/savi).