rouge
rouge copied to clipboard
A pure Ruby code highlighter that is compatible with Pygments
**Name of the lexer** Pascal **Code sample** ``` procedure TForm1.FormCreate(Sender: TObject); const n = %01101100 {binary} + &01234567 {octal} + $FF00 {hex}; begin end; ``` **Additional context** Docs: https://www.freepascal.org/docs-html/ref/refse6.html
**Name of the lexer** TSX **Code sample** Type arguments to generic components are not recognized by Rouge. ``` const render = () => ( ); const render2 = () =>...
**Name of the lexer** diff **Code sample** ```diff // path/to/file.js + this is inserted + over multiple lines - this is removed - over multiple lines ``` This is how...
Hello! This snippet is not highlighted on Gitlab, although it's a valid syntax in Angular: ``` // some-comp.component.ts @Component({ selector: 'selector', template: `` }) class SomeComp {} ```
Currently, the token shortname is used directly as the CSS class for a token. Due to the brevity of the shortnames (e.g., `err`), when the Rouge stylesheet is combined with...
Could you please make the Wiki editable by any GitHub user? There are numerous typos that could be fixed, and the setup instructions for Windows could do some added notes...
**Name of the lexer** ConsoleLexer **Code sample** ```rb require 'rouge' console = ` character in the middle of the line. So the code above produces this output: ```html $ echo"Hello...
[Issue #709] Based on [Agda's lexer](https://github.com/agda/agda/blob/master/src/full/Agda/Syntax/Parser/Lexer.x), I've filled out the remaining bits of the Agda lexer. It doesn't quite match the behaviour, especially in places where the semantics of the...
**Name of the lexer** properties **Code sample** ```properties # real comment key = value # comment on last line ``` **Additional context** Adding a new line fixes the problem but...
**Name of the lexer** Coq **Code sample** ```coq (* Now the negative universal property. *) Definition prod_coind_uncurried `{A : X -> Type} `{B : X -> Type} : (forall x,...