Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to put source code sample into the post

edited April 2012 in Vanilla 2.0 - 2.8


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...


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?


Sign In or Register to comment.