I have several examples in C++ programming languages, which I’d like to post on my blog. I tried to use the tag “". However, due to certain fragments of the code (templates, class keyword, etc.) the output looks awful. Do you know a universal way of parsing the .cpp file?
where void, cout and return are blue; main() is black and “Hello World” is bold… the solution I see to this is you formatting the code in HTML first and then pasting the formatted code into the editor… this process can be very laborious, though.