Project

General

Profile

Actions

Feature #8120

open

Code syntax highlighting in Wiki only works with Textile formatting

Added by Ebrahim Mohammadi over 13 years ago. Updated over 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
2011-04-10
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Code syntax highlighting in Wiki only works with Textile formatting. However it could/should be formatting-independent. So that any Wiki formatting that produces some < code class="xyz" > (spaces added to prevent parsing) gets a syntax-highlighted code.

Currently the code is at source:trunk/lib/redmine/wiki_formatting/textile/formatter.rb@5386#L50. However I guess a more generic variant of the code could be moved to source:trunk/app/helpers/application_helper.rb besides textilizable, parse_*, replace_toc, ...

Actions

Also available in: Atom PDF