GithubHelp home page GithubHelp logo

cdwertmann / line_numbers Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 7.0 5 KB

Redmine plugin that enables line numbering in code blocks and adds a toggle button to turn it on/off

Ruby 81.37% HTML 18.63%

line_numbers's People

Contributors

cdwertmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

line_numbers's Issues

Internal error when trying to view wiki pages

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:inblock in smooth_offtags'
lib/redmine/wiki_formatting/textile/formatter.rb:121:in gsub!' lib/redmine/wiki_formatting/textile/formatter.rb:121:insmooth_offtags'
lib/redcloth3.rb:307:in to_html' lib/redmine/wiki_formatting/textile/formatter.rb:43:into_html'
lib/redmine/wiki_formatting.rb:62:in to_html' app/helpers/application_helper.rb:545:intextilizable'
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'

Redmine 2.0.3.stable

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

Don't select and/or copy line numbers

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.