Actions
Feature #4267
open<code> block improvements
Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
2009-11-23
Due date:
% Done:
0%
Estimated time:
Resolution:
Description
I think it would be useful to implement the following features1 for code
block
Source code:
<pre><code class="ruby">
# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end
def salute
puts "Hello #{@name}!"
end
end
</code></pre>
Result:
# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end
def salute
puts "Hello #{@name}!"
end
end
:line_numbers2¶
<code class="ruby" lineNumbers="yes">.....</code>
<code class="ruby" lineNumbers="no">.....</code>
:line_number_start2¶
<code class="ruby" start="50">.....</code>
:bold_every2¶
<code class="ruby" every="2">.....</code>
:highlight_lines2¶
<code class="ruby" highlight="1,3,5,7">.....</code>
title¶
<code class="ruby" title="/path/to/file.rb">.....</code>
1 This standard features in CodeRay, but unfortunately not supported in Redmine :(
2 CodeRay HTML Encoder options
Files
Related issues
Actions