diff options
Diffstat (limited to 'lib/coderay/encoders/html.rb')
-rw-r--r-- | lib/coderay/encoders/html.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb index 56857dc..dcdffa1 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -49,10 +49,18 @@ module Encoders # Default: 'CodeRay output' # # === :line_numbers - # Include line numbers in :table, :inline, :list or nil (no line numbers) + # Include line numbers in :table, :inline, or nil (no line numbers) # # Default: nil # + # === :line_number_anchors + # Adds anchors and links to the line numbers. Can be false (off), true (on), + # or a prefix string that will be prepended to the anchor name. + # + # The prefix must consist only of letters, digits, and underscores. + # + # Default: true, default prefix name: "line" + # # === :line_number_start # Where to start with line number counting. # @@ -96,6 +104,7 @@ module Encoders :title => 'CodeRay output', :line_numbers => nil, + :line_number_anchors => 'n', :line_number_start => 1, :bold_every => 10, :highlight_lines => nil, |