Skip to content

Commit

Permalink
Fix broken syntax highlighting by using CSS class "syntaxhl".
Browse files Browse the repository at this point in the history
Since Redmine Revision 3585, the "CodeRay" CSS class name was changed to "syntaxhl".
  • Loading branch information
James Van Lommel committed Aug 5, 2010
1 parent e227566 commit 97fd617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redmine_markdown_extra_formatter/wiki_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def inline_macros(text)
def syntax_highlight(str)
str.gsub(PreCodeClassBlockRegexp) {|block|
syntax = $1.downcase
"<pre><code class=\"#{syntax.downcase} CodeRay\">" +
"<pre><code class=\"#{syntax.downcase} syntaxhl\">" +
CodeRay.scan($2, syntax).html(:escape => true, :line_numbers => nil) +
"</code></pre>"
}
Expand Down

0 comments on commit 97fd617

Please sign in to comment.