Problem posting C code
-
Hi
I’m using this to post C++ code:
[sourcecode language='cpp'] cout << “Hello”[/sourcecode]If i save the post the characters ‘<<‘ are replaced by ‘<<‘
Why is that?
Thanks
The blog I need help with is: (visible only to logged in users)
-
-
Humm … even stranger than i thought.
I start typing some text and then use the pluging for the code i want to post.
[sourcecode language='cpp']
#include
int main(){
std::cout << “Hello”;
}
[/sourcecode]Then, when i “save draft” e have to change from visual to HTML and back to visual to make it look ok?!
-
-
-
-
In theory you can use the shortcodes in the visual editor and wordpress should take care of it, but using shortcodes in visual mode is not a consistent thing. Thanks for posting that as it had not occurred to me that that could be the issue.
- The topic ‘Problem posting C code’ is closed to new replies.