Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: mattyoung commentedYou must markup your code like this:
Not this:
Comment #3
mattyoung CreditAttribution: mattyoung commentedComment #4
TanvirAhmad CreditAttribution: TanvirAhmad commentedSame issue, cant see it working.