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 lexer for the APL array programming language. APL is efficient at expressing algorithms in terms of arrays. J (which already has a lexer) is similar in...

Your library is great! We've recently been doing more kusto (kql) queries. It would be great if you supported that query language as well. Thanks!

enhancement-request

This PR adds support for the [P4 language](https://p4.org). There has been a bit of discussion and use of this lexer in the P4 community here: https://github.com/p4lang/p4-spec/issues/1115#issuecomment-2111018039.

**Name of the lexer** sed **Code sample** ```sed :tthousand s/d\(.*\)0\(...\)$/\11\2/ s/d\(.*\)1\(...\)$/\12\2/ s/d\(.*\)2\(...\)$/\13\2/ s/d\(.*\)3\(...\)$/\14\2/ tthousand ``` **Additional context** When I tried this code on [Rouge](https://rouge.jneen.net/v4.3.0/sed/draft), it took about 7 seconds to...

bugfix-request

**Name of the lexer** jsx and tsx **Code sample** ``` Hello world ``` ![image](https://github.com/rouge-ruby/rouge/assets/29075873/159686fb-81ee-48ee-8a43-6ede9f073853) https://rouge.jneen.net/v4.3.0/tsx/Y29uc3QgSGVsbG9Xb3JsZCA9ICgpID0-IHsKICByZXR1cm4gKAogICAgPG15LWN1c3RvbS1lbGVtZW50IGZvbz0iYmFyIj4KICAgICAgSGVsbG8gd29ybGQKICAgIDwvbXktY3VzdG9tLWVsZW1lbnQ-CiAgKTsKfQo **Additional context** The hyphen in custom elements are treated as invalid syntax in JSX/TSX lexers....

bugfix-request

**Name of the lexer** make **Code sample** ``` build: clean ## build the package python -m build ``` https://rouge.jneen.net/v4.3.0/make/YnVpbGQ6IGNsZWFuICMgYnVpbGQgdGhlIHBhY2thZ2UKCXB5dGhvbiAtbSBidWlsZAo **Additional context** In the `make.rb` lexer, the `Comment` rule in the...

bugfix-request

This changeset treats multiline sigils as doc strings, similar to how things work in GitHub as of time of authoring. I'm not sure if this is the best approach, but...

**Name of the lexer** Elixir **Code sample** This is taken [from the elixir documentation](https://hexdocs.pm/elixir/sigils.html#interpolation-and-escaping-in-string-sigils) about sigils and character escaping: ```elixir ~S""" Converts double-quotes to single-quotes. ## Examples iex> convert("\"foo\"") "'foo'"...

bugfix-request

Mojo (https://www.modular.com/max/mojo) is a relatively new programming language which is planned to be a superset of Python. With this contribution, I would like to start with syntax highlighting for Mojo....

Added Lexer for [Data Analysis Expressions (DAX)](https://learn.microsoft.com/en-us/dax/) Updated documentation for Docker development process, based on development on freshly installed Window's machine