Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

How to put source code sample into the post

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.