Project

General

Profile

Actions

Feature #3382

closed

Ability to select only source code without line numbers

Added by Gregor Bader almost 15 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
2009-05-18
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

Description

Currently if you use

<pre><code class="ruby">
  Place you code here.
</code>

to insert code into somewhere you are not able to copy/paste only the code! The line numbers are selected, too!
Perhaps update of coderay could solve this?
require 'rubygems'
require 'coderay'
tokens = CodeRay.scan <<-'CODE', :ruby
  puts %[Hello, world!]
  puts "Here\'s some #@@weird #{ { :code => "for you" } }" 
CODE
print tokens.div(:line_numbers => :table, :css => :class)


Files

code_table_line_numbers.png (79.6 KB) code_table_line_numbers.png Eric Thomas, 2010-04-06 15:34
syntax_highlighter.png (49.4 KB) syntax_highlighter.png Screenshot of 3 updates Eric Thomas, 2010-04-14 06:05
syntax_highlighter_patch.diff (5.07 KB) syntax_highlighter_patch.diff Line Number patch Eric Thomas, 2010-04-14 06:05

Related issues

Related to Redmine - Feature #4267: <code> block improvementsNew2009-11-23

Actions
Related to Redmine - Feature #4264: Update CodeRay to 1.0 finalClosed

Actions
Related to Redmine - Defect #36580: Fix code copying in common browsersClosedGo MAEDA

Actions
Has duplicate Redmine - Feature #8578: Code selection shouldn't get line numbersClosed2011-06-09

Actions
Has duplicate Redmine - Feature #9613: Line numbers copied in repository file viewClosed2011-11-20

Actions
Has duplicate Redmine - Feature #14469: change source code browser's html layoutClosed

Actions
Blocked by Redmine - Feature #8255: Consider updating CodeRay to 1.0 RC-xClosed

Actions
Actions

Also available in: Atom PDF