rouge
rouge copied to clipboard
A pure Ruby code highlighter that is compatible with Pygments
**IEC 61131-3 Structured Text** Structured text is a programming language for PLCs (programmable logic controllers), similar to Pascal. * Wikipedia: [IEC 61131-3](https://en.wikipedia.org/wiki/IEC_61131-3) [Structured Text](https://en.wikipedia.org/wiki/Structured_text) * Siemens language based on ST:...
This adds the keywords 'module' and 'import' to the C++ lexer, along with a short code sample.
**Name of the lexer** JavaScript **Code sample** ``` export class DataPoint { #time = $.source($.proxy(new Date())); get time() { return $.get(this.#time); } } ```  Those fields should ideally be...
**Is your enhancement request related to a problem? Please describe.** Device tree source files are not recognized when parsed by Rouge. I'm using Jekyll writing some guides on how to...
I found https://rouge-ruby.github.io/docs/file.LexerDevelopment.html with instructions on how to make a Rouge Lexer, and contribute it to Rouge. I was able to use the instructions quite easily to make a custom...
**Describe the error** [List of supported languages and lexers](https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers) is out of date. **Affected document** - https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers
Howdy! Noticed some less than perfect syntax highlighting on a blog post, and thought to fix the issue upstream in rouge. In typescript, 'as' and 'satisfies' are type assertion operator,...
**Name of the lexer** Shell **Code sample** ```shell ls --all \ -1 `# One file per line` \ --group-directories-first ``` - https://rouge.jneen.net/v4.2.0/shell/bHMgLS1hbGwgXAogICAtMSBgIyBPbmUgZmlsZSBwZXIgbGluZWAgXAogICAtLWdyb3VwLWRpcmVjdG9yaWVzLWZpcnN0 **Additional context** The above shell script is identical...
Rendering MATLAB code on Rouge (https://rouge.jneen.net/v4.2.0/matlab/) causes exception. ```sh 2023-10-26T23:54:09Z app[e2865659b14968] lax [info]2023-10-26 23:54:09 - NameError - uninitialized constant Rouge::Lexers::Matlab: 2023-10-26T23:54:09Z app[e2865659b14968] lax [info] /app/tmp/rouge/rouge-4.2.0/lib/rouge/lexers/matlab/keywords.rb:11:in `' 2023-10-26T23:54:09Z app[e2865659b14968] lax [info]...