diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-14 13:22:50 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-14 13:22:50 +0000 |
commit | ad487bf7cc4bd00d2e10b1dafe0e314b99598d7f (patch) | |
tree | e93a204beb18d3e1f88f5738963806911f49604a /lib | |
parent | c03b4c2e1e88f4fd1257d9519144905f08718dcd (diff) | |
download | redmine-ad487bf7cc4bd00d2e10b1dafe0e314b99598d7f.tar.gz redmine-ad487bf7cc4bd00d2e10b1dafe0e314b99598d7f.zip |
Replace the hardcoded "CodeRay" css class name for highlighted elements.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3585 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/wiki_formatting/textile/formatter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting/textile/formatter.rb b/lib/redmine/wiki_formatting/textile/formatter.rb index 65c1d01a6..e0cdd6aa3 100644 --- a/lib/redmine/wiki_formatting/textile/formatter.rb +++ b/lib/redmine/wiki_formatting/textile/formatter.rb @@ -52,7 +52,7 @@ module Redmine text.gsub!(/<redpre#(\d+)>/) do content = @pre_list[$1.to_i] if content.match(/<code\s+class="(\w+)">\s?(.+)/m) - content = "<code class=\"#{$1} CodeRay\">" + + content = "<code class=\"#{$1} syntaxhl\">" + Redmine::SyntaxHighlighting.highlight_by_language($2, $1) end content |