rouge
rouge copied to clipboard
A pure Ruby code highlighter that is compatible with Pygments
**Name of the lexer** INI [**Code sample**](https://rouge.jneen.net/v4.2.0/ini/SEVMTE89d29ybGQKOyBjb21tZW50cw) ```ini HELLO=world ; comments ``` Rendered result: ```html HELLO=world ; comments ``` Expected (may be produced by appending a newline at the end...
What is [1C:Executor](https://1cmycloud.com/console/help/executor/4.0/docs/topics/doc00873.html)
Adds a lexer for [GNU Assembler](https://en.wikipedia.org/wiki/GNU_Assembler). This is based on `nasm.rb` and might retain some NASMisms. The most important differences to NASM: GNU Assembler directives start with `.`, registers start...
## Background Commits are split into refactor/changes/additions, so reviewing them individually should be much easier than the final diff. Base16 ruby code highlighting reference: https://base16.vercel.app/previews/base16-default-dark There are still a few...
**Name of the lexer** Ruby **Code sample** ```ruby {🎃:1} ``` https://rouge.jneen.net/v4.2.0/ruby/e_CfjoM6MX0 **Additional context** ```ruby require 'rouge' Rouge::Formatters::HTML.new.format Rouge::Lexers::Ruby.lex '{🎃:1}' ``` Output: ```html {🎃:1} ``` The class of the `🎃` character...
**Describe the error** Information in some documents appears...not quite aligned...and resulted in some wandering around (though with ultimate success). **Affected documents** * [README.md](https://github.com/rouge-ruby/rouge/blob/1687d63cede01e9e1c108425e9987060ad85c79d/README.md) * [Setting up Ruby Wiki Page](https://github.com/rouge-ruby/rouge/wiki/Setting-up-Ruby) *...
Add support for Bicep (Azure DSL language). This is my first Lexer, and as I'm not a Ruby developer I am very open to feedback, I'll be happy to make...
This is a (first draft) of a lexer for the [Mojo](https://docs.modular.com/mojo/) programming language. In principle, Mojo aims to be a superset of Python, so the Mojo lexer inherits from the...
 Fixes #1636 Fixes #1873
Hey everybody, we observed the below problem in python lexing on gitlab: **Name of the lexer** python **Code sample** ``` def foo( bar, optional=None, ): """Docstring. Parameters ---------- foo :...