dominch / redmine_highlightjs

A redmine plugin to highlight code blocks much better than coderay!
Other
23 stars 10 forks source link

Not work in repository #7

Closed Krakozaber closed 9 years ago

Krakozaber commented 9 years ago

Not work in git repository

dominch commented 9 years ago

I just checked on four redmine instances and it works great, You need to provide more information about Your instance (version, installed plugins, etc.)

Krakozaber commented 9 years ago

Redmine 3.0.3

plugins: redmine_xapian, redmine_checklist, redmine_ldap_sync

Install: copy redmine_highlightjs -> ./redmine/plugins /var/lib/gems/1.9.1/bin/bundle install --without development test && rake1.9.1 redmine:plugins:migrate RAILS_ENV=production

..../apache2 restart

In firebug I can see that highlight.js and css loaded. (Firefox 40)

dominch commented 9 years ago

I just tried redmine stable 3.0.x (3.0.4) with Your plugins, and it worked without any problems, the only difference is ruby (2.1.5) but this should not be an issue Check out javascript console, are there any errors? Check content of loaded CSS and JS file - are they ok? (meaning content format)
Review any example <pre><code>...</pre></code> in firebug - it should receive hljs class, is it? Are You using non-default theme?

Krakozaber commented 9 years ago

use Alternate in Redmine and Default in plugin config

dominch commented 9 years ago

Still works on my test instance, Alternate theme + default scheme in plugin config. Please answer questions above. I can't reproduce Your issue and I don't have any clue what may be wrong on Your side.

Make sure You are using latest version from github (1.0.1) .

BTW: what makes You think it's not working? Can You attach any screenshot?

dominch commented 9 years ago

Ok, now it's clear - plugin is not loaded here yet, but those views are not <pre><code>.. blocks that You can insert. In fact it's duplicate of #3 I assumed that it's not working on whole page, now I know that You meant source view only. I'm closing this issue as duplicate of previous ticket, I hope to take a look at this i few days :)

Thanks for Your raport :)

Krakozaber commented 9 years ago

It`s git repository connected to Redmine

dominch commented 9 years ago

Yep, I know now, this wasn't cleat at topic start :) I'll take a look at this and try to fix that, it should not be very difficult. :) I'll let You know in #3

Krakozaber commented 9 years ago

Thanks