I'm using syntax highlighter with FCKEditor. It works great with full HTML input format. But with filtered it doesn't. The resulting html has the following difference:
With full html I'm getting the following tag on the resulting page:
//this works
With filtered:
//this doesn't
As you can see 'brush' is missing in class attribute for some reason.
Syntax Highlighter filter is enabled in "Filtered HTML" input format and it is after HTML filter.
Any help please?
There is the following note in the description of Syntax highlighter module:
The solution is enable the Syntaxhighlighter filter and use this:
{syntaxhighlighter SYNTAXHIGHLIGHTER-OPTIONS}
Filter is enabled in my case, do I need to do smthng else to use {syntaxhighlighter SYNTAXHIGHLIGHTER-OPTIONS}, and how exactly to use this?
Many thanks.
Comments
Comment #1
skiny commentedWith reference to above. The tag example gone. Here it is
With full html I'm getting the following tag on the resulting page:
pre title="code" class="brush: csharp;" //this works
With filtered:
pre class=" csharp;" title="code" //this doesn't
As you can see 'brush' is missing in class attribute for some reason.
Comment #2
mattyoung commentedYou must markup your code like this:
Not this:
Comment #3
mattyoung commentedComment #4
tanvirahmad commentedSame issue, cant see it working.