Project

General

Profile

Actions

Feature #24681

closed

Syntax highlighter: replace CodeRay with Rouge

Added by Go MAEDA over 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Text formatting
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

I propose replacing CodeRay with other syntax highlighter, Rouge . It supports 100+ languages.

Current syntax highlighter CodeRay does not support popular languages such as C#, Visual Basic, Objective C, Swift, ... and so on. Unfortunately the development of CodeRay is not so active now, it is difficult to expect that CodeRay will support those languages.

Citation from Rouge's README.md :

Advantages to CodeRay
  • The HTML output from Rouge is fully compatible with stylesheets designed for pygments.
  • The lexers are implemented with a dedicated DSL, rather than being hand-coded.
  • Rouge supports every language CodeRay does and more.

Files

redmine_rouge_plugin_csharp.png (17.2 KB) redmine_rouge_plugin_csharp.png Go MAEDA, 2016-12-26 05:16
highlight-sample.png (88.6 KB) highlight-sample.png Go MAEDA, 2016-12-28 07:46
without_opening_tag.png (2.1 KB) without_opening_tag.png Marius BĂLTEANU, 2016-12-28 10:38
with_open_tag.png (3.14 KB) with_open_tag.png Marius BĂLTEANU, 2016-12-28 10:38
highlight-php.png (15.2 KB) highlight-php.png Go MAEDA, 2016-12-29 06:46
0002-Update-help-for-Rouge-syntax-highlighter.patch (457 KB) 0002-Update-help-for-Rouge-syntax-highlighter.patch Go MAEDA, 2016-12-29 06:53
multiline-comment-before.png (15.7 KB) multiline-comment-before.png multiline comment issue : before fix Go MAEDA, 2016-12-29 16:46
multiline-comment-after.png (15.7 KB) multiline-comment-after.png multiline comment issue : after fix Go MAEDA, 2016-12-29 16:49
0001-Replace-syntax-highlighter-CodeRay-with-Rouge.patch (40.7 KB) 0001-Replace-syntax-highlighter-CodeRay-with-Rouge.patch Go MAEDA, 2018-08-26 09:38
ruby_broken.png (25.6 KB) ruby_broken.png Jean-Philippe Lang, 2018-09-26 09:12
0001-Switch-syntax-highlighter-to-Rouge-from-CodeRay.patch (21.6 KB) 0001-Switch-syntax-highlighter-to-Rouge-from-CodeRay.patch Go MAEDA, 2018-09-27 12:31

Related issues

Related to Redmine - Feature #2623: C# syntax highlightingClosed2009-01-30

Actions
Related to Redmine - Feature #3032: Use google Prettify for syntax highlighting instead of CodeRayClosed2009-03-23

Actions
Related to Redmine - Feature #1313: Optionally use ultraviolet for syntax highlightingClosed2008-05-27

Actions
Related to Redmine - Patch #1651: Hack to make redmine use pygmentize instead of CodeRayClosed2008-07-15

Actions
Related to Redmine - Feature #28094: Kotlin code highlight supportClosed

Actions
Related to Redmine - Defect #29259: Attachment preview does not work for some source files such as JavaScript and GoClosedGo MAEDA

Actions
Related to Redmine - Defect #29681: "x%x%" is rendered as "&" in Textile formatterNew

Actions
Related to Redmine - Defect #26708: Diff formatting results empty lines if they contains HTML tagsClosed

Actions
Related to Redmine - Defect #20758: Ampersand+keyword in code highlightingClosed

Actions
Related to Redmine - Defect #30434: Line height is too large when previewing files with syntax highlighting if the line terminators are CRLFClosedGo MAEDA

Actions
Related to Redmine - Feature #35676: Optimize performance of syntax highlighting implementationNeeds feedback

Actions
Actions

Also available in: Atom PDF