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

skiny’s picture

With 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.

mattyoung’s picture

You must markup your code like this:

{syntaxhighlighter title="code" class="brush: csharp;"}
  your code here
  ...
{/syntaxhighlighter}

Not this:

<pre title="code" class="brush: csharp;">
  your code here
  ...
</pre>
mattyoung’s picture

Status: Active » Closed (works as designed)
TanvirAhmad’s picture

Same issue, cant see it working.