cdwertmann / line_numbers Goto Github PK
View Code? Open in Web Editor NEWRedmine plugin that enables line numbering in code blocks and adds a toggle button to turn it on/off
Redmine plugin that enables line numbering in code blocks and adds a toggle button to turn it on/off
After installing line_numbers wiki pages using coderay give me an internal error.
My setup is:
Environment:
Redmine version 2.2.2.stable
Ruby version 1.9.3 (x86_64-linux)
Rails version 3.2.11
Environment production
Database adapter Mysql2
Any ideas whats causing this?
Here's the end of my log:
Processing by RbServerVariablesController#index as JS
Current user: mku (id=1)
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:erb] instead. (called from realtime at /usr/lib/ruby/1.9.1/benchmark.rb:295)
Rendered plugins/redmine_backlogs/app/views/rb_server_variables/show.js.erb (5.8ms)
Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.8ms)
Started GET "/redmine/projects/pastime/wiki/Developers_notebook" for 188.97.145.45 at 2013-09-12 06:24:16 +0200
Processing by WikiController#show as HTML
Parameters: {"project_id"=>"pastime", "id"=>"Developers_notebook"}
Current user: mku (id=1)
Rendered wiki/_content.html.erb (16.9ms)
Rendered wiki/show.html.erb within layouts/base (25.0ms)
Completed 500 Internal Server Error in 43ms
ActionView::Template::Error (undefined method highlight_by_language' for Redmine::SyntaxHighlighting:Module): 1: <div class="wiki wiki-page"> 2: <%= textilizable content, :text, :attachments => content.page.attachments, 3: :edit_section_links => (@sections_editable && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %> 4: </div> lib/redmine/wiki_formatting/textile/formatter.rb:125:in
block in smooth_offtags'
lib/redmine/wiki_formatting/textile/formatter.rb:121:in gsub!' lib/redmine/wiki_formatting/textile/formatter.rb:121:in
smooth_offtags'
lib/redcloth3.rb:307:in to_html' lib/redmine/wiki_formatting/textile/formatter.rb:43:in
to_html'
lib/redmine/wiki_formatting.rb:62:in to_html' app/helpers/application_helper.rb:545:in
textilizable'
app/views/wiki/_content.html.erb:2:in _app_views_wiki__content_html_erb___288149626387928566_66022740' app/views/wiki/show.html.erb:40:in
_app_views_wiki_show_html_erb___3520265327037928570_62007480'
app/controllers/wiki_controller.rb:98:in `show'
Plugin does not work (. The switch does not appear
Redmine information:
Environment:
Redmine version 2.0.3.stable
Ruby version 1.9.3 (x86_64-linux)
Rails version 3.2.6
Environment production
Database adapter Mysql2
Redmine plugins:
line_numbers 1.0.0
...would be very helpful, thanks!
Hi there!
Thanks for your great plugin!
Unfortunately, if I select the source code, the line numbers are also selected and copied, which is not so nice if I want to paste it into my code files. So, is it possible that only the code is selected when line numbers are shown? I've seen that behaviour in github (I think), so I hope it's just some css magic!? :-)
Thanks a lot in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.