Get rid of WordPress messing with your quotes while writing code
May 1, 2008 – 10:45 pmProblem: Recently I was writing an article where I posted some python code. Using WordPress, I was switching between HTML/Code view and “Visual” view. Every time that I switched, the WordPress editor would change some of my code, namely the quotes. I ended up with something that looked like this:
Solution: Not exactly sure, but it seems to have stopped.
There are several WordPress posts that go over an issue of using the tag to write sourcecode.
Personally, I was very frustrated because while writing in Python, where whitespace matters, my indents would all be lost when switching between the visual and HTML editor in WordPress.
My solution was to wrap my tags in <pre> tags.
Check the plugin?
I originally was using the tag from SyntaxHighlighter, then found another one, called SyntaxHilighter Plus.
I don’t have time to go over all of this, but I disabled the Plus version, re-enabled the regular SyntaxHighlighter, and made sure to wrap my s in <pre> tags.



One Response to “Get rid of WordPress messing with your quotes while writing code”
Good day!
I would like to present interesting site:
acomplia prezzo acomplia doctor ceftin apotheke ceftin espana celexa pharmacy celexa pharmacy cleocin fedex cleocin sale diflucan prix diflucan purchase elavil uk elavil online hytrin price hytrin drug imitrex prix imitrex prix lexapro sale lexapro canada prednisone pharmacy prednisone prescription remarin buy remarin generic prevacid overnight prevacid discount sustiva overnight sustiva buy testosterone cheap testosterone oral topamax apotheke topamax doctor viramune doctor viramune effects xenical nextday xenical buying zyban pharmacy zyban price zyloprim prix zyloprim espana zyprexa pharmacy zyprexa overnight
Thank you!
Great
By Sernandoz on Mar 8, 2010