jamesisin
Member
Posted 2 years ago #
I am running SyntaxHighlighter Plus so that I can post code boxes. WordPress is replacing certain characters with & definitions and not displaying those characters under certain circumstances. I am seeking a way to remedy this situation.
Here is an example:
http://www.soundunreason.com/InkWell/?p=2313
The code includes the standard BASH error redirection in line 7 ( 2> ) but as you can see in the post it is converted to 2> and not reconverted in the displayed post. Lines 4 and 5 contain some greater than symbols which are converted (in the backend) and reconverted in the displayed post.
How can I ensure that all instances of greater than in code blocks are displayed as the symbol?
jamesisin
Member
Posted 2 years ago #
Um, that should read more like "... as you can see in the post it is converted to 2_&_g_t_; and not reconverted...". (Thanks, WordPress.)
jamesisin
Member
Posted 2 years ago #
Sorry I moved some of the comments around for clarity.
The problem child is now in line 9 and it is lines 5 and 7 that contain the & definitions which are working.
jamesisin
Member
Posted 2 years ago #
Um, is there no one who can contribute positively on this matter?
jamesisin
Member
Posted 2 years ago #
So, I have narrowed down the problem. Not that anyone around here seems to care, mind you.
If the greater than symbol is in a comments line (any line preceded by # while in BASH code for instance) the symbol is changed to its & code at Save and rendered correctly when viewed as a post.
If the greater than symbol is in a line of actual code the symbol is changed to its & code at Save but NOT rendered as a greater than symbol when live (you see the full & code instead).
By chance, anyone have any suggestions?
jamesisin
Member
Posted 2 years ago #
Seriously? Nobody uses this?
jamesisin
Member
Posted 2 years ago #
Ok, so which plugin should I be using if no one is using this one?