dominch / redmine_highlightjs

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

1.0.3 when class="html", it shows nothing #18

Open aliramw opened 8 years ago

aliramw commented 8 years ago
<pre><code class="html">
<input type="button" name="login" onclick="Agent.clickEvent();">
</code></pre>
dominch commented 8 years ago

It is working on my copy, are there any JS errors on Your redmine instance? Take a look at JS console. If there is an error before hjs plugin execution then it will not highlight anything on page (this or any other piece of code) .

aliramw commented 8 years ago

No js error.

These also display nothing!!!

<pre><code class="xml">
<dependency>
   <info test="234"></info>
</dependency>
</code></pre>

if I remove "xml", it become normal....

why????

aliramw commented 8 years ago

I found that when code class = "xml",it just embed the code into html ... that's disaster....

2015-12-10 11 16 12
zl2705 commented 8 years ago

I have the same issue. When I view html/jsp file in Repository, it shows nothing.

aliramw commented 8 years ago

any update on this issue?

alxRlja commented 8 years ago

Hi! Same situation for me. Actually, ANY HTML Related (like Tables, CSS , XML...) the section is rendered. so for example, instead of seeing the HTML of a table, I see the table. :-/