I am using a plugin named CodeHighlighter to insert code snippet inside articles in my Joomla 2.5 website.
As editor I use JCE.
To insert code snippet I do the following thing in JCE editor I do the following operation:
I swap to the HTML code view and, for example, I insert something like this:
<pre class="brush:java">
package com.tutorialspoint;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextStartedEvent;
public class CStartEventHandler
implements ApplicationListener<ContextStartedEvent>{
public void onApplicationEvent(ContextStartedEvent event) {
System.out.println("ContextStartedEvent Received");
}
}
</pre>
Ok...this work well except for this part of code: which is eliminated by JCE (I have try using a no WYSIWIG editor and there is no problem)
So the problem seems to be that JCE see as a tag and not as a legal part of my Java code snippet, and so delete it...
Do you have some idea about how say to JCE to don't delete this part of code?