Problems on source code with entities
-
Hi guys,
I thought that with the [sourcecode] tag I wouldn’t have any more problemns posting source code, but I have! When I post something like >, < or & it shows the entity as text. Ex.
I post in source code view ‘&’ inside ‘[sourcecode]‘, and it becames ‘&’ in the text, that corresponds to ‘&’ in source code.See in the blog.
-
-
No, i have to post, for example, E in the source code, and put an observation that this E corresponds to an amperstand &…
-
Are you looking for someone to help you?
FWIW there are other forum threads https://en.forums.wordpress.com/search.php?q=source+code -
Here’s a simple way to duplicate:
[sourcecode language='jscript']
function lt(a,b) {
return a < b;
}
[/sourcecode]
This shows up on the web page as:
function lt(a,b) {
return a < b;
}
Is there any way to get this fixed?
-
-
I have this problem as well, not being able to post ampersands in sourcecode is quiet silly, there’s hardly any mainstream lanaguage that doesn’t use ampersands one way or the other… doesn’t work for CDATA tags in XML also.
-
This should now be fixed, but you’ll have to re-edit the source code in your posts to take out the & and put in the & (same for less than and greater than signs).
Please let us know if there are more problems.
- The topic ‘Problems on source code with entities’ is closed to new replies.