Search found 4 matches

by interp
Thu May 24, 2007 2:01 pm
Forum: General discussions
Topic: C++ source code in comments
Replies: 7
Views: 3339

Re: C++ source code in comments

Hi!

Hi!
I usually use simple BBCode markup and use \ blocks. I personally have never used Geshi.
[/quote]
Geshi adds syntax highlighting, which I like. The BBCode markup seems to only work in conjunction with the NL2BR plugin, which in turn does not work with the markdown plugin that I prefer ...
by interp
Wed May 23, 2007 4:12 pm
Forum: General discussions
Topic: C++ source code in comments
Replies: 7
Views: 3339

Re: C++ source code in comments

Did you try to put the unstrip entities plugin AFTER the geshi markup plugin?


Things get really messy if I do this :-)

std::operator<< foo;
[geshi lang=cpp]
std::operator<< foo;
[/geshi]

gets

std::operator<< foo; <div class="cpp" style="text-align: left"><br />std::<span style="color ...
by interp
Tue May 22, 2007 6:52 pm
Forum: General discussions
Topic: C++ source code in comments
Replies: 7
Views: 3339

Re: C++ source code in comments

Hi garvinhicking,

thank you for your reply.

Yes, the plugin "Transforms HTML for comments" undoes the stripping of "<<" for "regular" text, but then the C++ source code gets messed up inside geshi. If I say (with "Transform HTML for comments" as the first markup module)


outside geshi ...
by interp
Mon May 21, 2007 5:54 pm
Forum: General discussions
Topic: C++ source code in comments
Replies: 7
Views: 3339

C++ source code in comments

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:

std::ostream operator<<(foo, bar);

the comment looks like ...