SyntaxHighlighter scripts not loading unless….
-
This plugin is this close to doing exactly what I need, but I’m having a strange problem. I have fenced code blocks in my post, like:
~~~~
!#cpp
int main()
{
/*...*/
}
~~~~
This shows up in code font, but is not syntax highlighted. If, somewhere else on the page, I have another code block of this form:
[code lang="cpp"]
int foo() { return 0; }
[/code]
… then that shows up highlighted, and so does the other block! How crazy is that?
I’d be fine with this workaround if it weren’t for one thing. When I use the [code]...[/code] form, WP-Markdown makes a hash of that code’s formatting. So my choices are to have no code highlighted, or else have one block that is mis-formatted. Gah. Any guidance is appreciated.
I’m using WP-Markdown 1.2, SyntaxHighlighter Evolved 3.1.7, and wp-markdown-syntaxhighlighter 0.4.
https://www.ads-software.com/extend/plugins/wp-markdown-syntaxhighlighter/
- The topic ‘SyntaxHighlighter scripts not loading unless….’ is closed to new replies.