Skip to content

Displays a button in editor to surround selected text with snippets for convenient codehighlight in the wiki

Notifications You must be signed in to change notification settings

mindo/redmine_codebutton

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code_highlight

This is an small extension for redmine, which adds a code highlight button to the default editor.

Select a text and press the “code”-button, choose your desired language and

GET RID OF WRITING:

<pre>
    <code class="ruby">
        MyClass.new(:blah)
    </code>
<pre>

It’s a requested feature on redmine.org and I decided to try to implement it for my needs. Thankfully Felix S. has provided his code. I used the “redmine_wiki_extensions” which guides me through the process.

www.redmine.org/issues/14937

I also wanna thank Andriy L. which offers me the first hint for figuring out how to implement.

stackoverflow.com/questions/19378096/syntax-highlight-in-redmine

Installation

Clone or download this repo into your redmine_root/plugins/ folder

or

add it as a submodule of git:

> git submodule add git://github.com/mediatainment/redmine_codebutton.git plugins/redmine_codebutton

You may have to run to provide the assets

rake redmine:plugins

About

Displays a button in editor to surround selected text with snippets for convenient codehighlight in the wiki

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.5%
  • CSS 31.5%
  • Ruby 9.0%