Syntax highlighter stops working as it was working before, tested all configuration settings
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | syntaxhighlighterissue.txt | 918.58 KB | axxint |
Syntax highlighter stops working as it was working before, tested all configuration settings
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | syntaxhighlighterissue.txt | 918.58 KB | axxint |
Comments
Comment #1
mattyoung commentedWhat does it do now? What does it show? Plain text? Nothing?
Comment #2
axxint commentedI'm seeing the same thing. I've gone through all my settings and everything looks configured right, but code is showing up plain inside the following kinds of tags {syntaxhighlighter brush: csharp;fontsize: 100; first-line: 1; } ... {/syntaxhighlighter}
Everything was working a day ago, and while I have been working on the site, I don't believe anyone installed any modules or messed with any global settings. The syntax highlight button is still in my TinyMCE editor, and I can use it, but the output isn't rendering.
Comment #3
mattyoung commentedwhat's the page source look like?
Comment #4
axxint commentedI pasted below everything that looked relevant, but also attached a txt file of the whole page source.
However, in TinyMCE in drupal in the HTML view the syntaxhighlighter code looks like this:
The input format is Full HTML and I don't have any filters enabled for that format. I even unchecked everything in the "cleanup & output" section of my WYSIWYG Full HTML TinyMCE profile for good measure too.
Comment #5
mattyoung commented>The input format is Full HTML and I don't have any filters enabled for that format.
Since you are using the "Full HTML" format and do not have the "Syntax highlighter" filter enable, then you can just change the markup from:
to
EDIT: you need to enable the "Syntax highlighter" filter if you want to use the filter format:
the purpose of the "Syntax highlighter" filter is so that you can use it in some restricted format like "Filtered HTML" so that untrusted user can have syntax highlight code in their post (e.g. in comments posted by anonymous users).
Comment #6
axxint commentedSyntax highlighter filter was enabled for both full and filtered.
Outsource dev team fixed it somehow. If they let us know what they did, I'll post it.
Thank you!
Comment #7
mattyoung commented