C++ source code in comments
Posted: Mon May 21, 2007 5:54 pm
Hi,
can some of you tell me how I have to configure my blog so that users can post C++ source code (eg. with geshi)? The posts get truncated after the "<<":
When I try to post a comment in my blog that contains C++ source code like:
the comment looks like this:
that is, everything after the "<<" is missing. Thus, geshi is not working, as the closing [/geshi] is missing.
I tried to HTML encode the "<" with "<", but then I get
that is, the HTML encoding is ignored (or, the ampersands are HTML encoded...)
My event plugin list is:
Markup Geshi, Markup Markdown, Markup Serendipity, Markdown Emoticate, (followed by Browser Compatibility, Spam Protector, Link List, Spartacus, Tagging of Entries, Trackback Control).
All markup plugins are active for comments.
I tried several different orders of the plugins to no avail. I removed the NL2BR
plugin, as it somehow has troubles with the geshi and markdown plugin.
Thank you for your help in advance,
interp.
can some of you tell me how I have to configure my blog so that users can post C++ source code (eg. with geshi)? The posts get truncated after the "<<":
When I try to post a comment in my blog that contains C++ source code like:
Code: Select all
std::ostream operator<<(foo, bar);
Code: Select all
std::ostream operator
I tried to HTML encode the "<" with "<", but then I get
Code: Select all
std::ostream operator<<(foo,bar);
My event plugin list is:
Markup Geshi, Markup Markdown, Markup Serendipity, Markdown Emoticate, (followed by Browser Compatibility, Spam Protector, Link List, Spartacus, Tagging of Entries, Trackback Control).
All markup plugins are active for comments.
I tried several different orders of the plugins to no avail. I removed the NL2BR
plugin, as it somehow has troubles with the geshi and markdown plugin.
Thank you for your help in advance,
interp.