[code]/[sourcecode] tags not working properly
-
I am attempting to post sourcecode in my blog posts.
I have used [code language="cpp"][/code] and [sourcecode language="cpp"][/sourcecode].When I click on preview, sometimes the indentation of the code will be removed, and I’ll need to put it back in, and when I paste in multiple blocks of code, the last one is treated as normal text.
What gives?
The blog I need help with is: (visible only to logged in users)
-
Hi –
There are limits on what type of code you can use with WordPress.com because of our shared environment.
Could you add a screen shot to your media library for me and then I can take a better look.
-
I don’t really know what you mean by limits. It’s just formatting the code, not executing it. In any case, I have put two screenshots in my media folder, which shows the formatting in the editor, and in the preview.
-
This is what I was referring to about the code: https://en.support.wordpress.com/code/
I’ll have a look at those screen shots and report back. Hang tight.
-
Ok – I think this should help: https://en.support.wordpress.com/code/posting-source-code/
- The topic ‘[code]/[sourcecode] tags not working properly’ is closed to new replies.