How to put source code sample into the post

edited April 2012 in Vanilla 2.0 - 2.8

Hi,

I'd like my users to be able to put source code samples inside posts on my web page - what is the best way to put code, maybe with coloring also...?

For example - when I try to put some C++ program I get first line ( [hash] include.....) wrongly "understood" by Vanilla... plus the line formatting is wrong...

include

using namespace std;

int main()
{
cout << "Hello world!" << endl;
return 0;
}

Ps. This probably depends on WYSIWYG editor plugin on my page... I use CLEditor... What would be better in this case?

Answers

Sign In or Register to comment.