summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-06 17:06:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-09-06 17:06:07 +0000
commit42db3cac06ad7f49dc10c7993e2df54b5bb4b2ab (patch)
tree26f3dc7e68a723cfe7dba800f89a341a467cc167 /app/views
parent22c5e0d61481f4d33d4eab48a7007ad49fb00190 (diff)
downloadredmine-42db3cac06ad7f49dc10c7993e2df54b5bb4b2ab.tar.gz
redmine-42db3cac06ad7f49dc10c7993e2df54b5bb4b2ab.zip
Added code highlighting support in wiki, using this syntax:
<pre><code> <-- cut here <pre><code class="ruby"> Place you code here. </code></pre> cut here --> </pre></code> git-svn-id: http://redmine.rubyforge.org/svn/trunk@710 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/wiki/edit.rhtml4
-rw-r--r--app/views/wiki/show.rhtml4
2 files changed, 8 insertions, 0 deletions
diff --git a/app/views/wiki/edit.rhtml b/app/views/wiki/edit.rhtml
index 56ed5d8d3..368ab098b 100644
--- a/app/views/wiki/edit.rhtml
+++ b/app/views/wiki/edit.rhtml
@@ -25,3 +25,7 @@
<% end %>
<div id="preview" class="wiki"></div>
+
+<% content_for :header_tags do %>
+ <%= stylesheet_link_tag 'scm' %>
+<% end %>
diff --git a/app/views/wiki/show.rhtml b/app/views/wiki/show.rhtml
index 06eca76ee..31c4b60ce 100644
--- a/app/views/wiki/show.rhtml
+++ b/app/views/wiki/show.rhtml
@@ -37,3 +37,7 @@
<%= submit_tag l(:button_add) %>
<% end %>
<% end %>
+
+<% content_for :header_tags do %>
+ <%= stylesheet_link_tag 'scm' %>
+<% end %>