mindo / redmine_codebutton

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 59.6%Language:CSS 31.5%Language:Ruby 9.0%