Project

General

Profile

Actions

Feature #407

closed

Code Syntax Highlighting in Wiki and Repository

Added by Andris Zāģeris over 17 years ago. Updated about 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

1. Adding Syntax Highlighting in Wiki pages should be as simple as adding a javascript library for this (CodeHighlighter,
etc.). And usage would be:

echo "hello world";

2. Syntax Highlighting in the Repository for files/diffs would be great, but trickier (CodeRay/Syntax/etc.
+ file.mime_type)

Actions #1

Updated by Jean-Philippe Lang over 17 years ago

I've just committed (rev 644) syntax highlightment for files
in the repository.

Actions #2

Updated by Jean-Philippe Lang over 17 years ago

Have a look here:
http://demo.redmine.org/repositories/entry/1?path=trunk%2Fapp%2Fc
ontrollers%2Frecipes_controller.rb

Actions #3

Updated by Andris Zāģeris over 17 years ago

See http://rubyforge.org/forum/message.php?msg_id=26844 for
additional CodeRay scanners (languages).

Actions #4

Updated by Jean-Philippe Lang about 17 years ago

Syntax highlighting in wiki pages is now also supported, using
the same library (coderay).

Just use this exact syntax:

  Place you code here.
Actions

Also available in: Atom PDF