You can paste it into any html document with some translations, such as > for <, and of course a lot of <br/>'s but that's a bunch of work. you can also use <pre></pre> tags to help with formatting.
However, if you want it highlighted syntatically (like most IDE's do) you'll probably will need to find a php file that can parse the code much like these forums do with [code][/code] tags.
There has to be some programs available that will export code into syntatically highlighted html. If not, that would make for good project to make.
cpptohtml just makes your C++ code look pretty. It puts it in correct highlighted syntax and spacing so you can display it on a web page.
As for developing web-pages in C++. This is possible, but you need to learn how to write CGI Scripts (You can write CGI in C++). Your best bet would be to learn PHP as it has a C++ syntax and is pretty much the C++ of web development.
CGI is Common Gateway Interface. It stands for programs that take input from web browsers (or more specifically from web servers who have collected the data from the browser) and outputs the data to a web browser (or more specifically to a web server which then forwards it to the web browser).
CGI's can be written in any language, though PHP is one of the most common, because PHP can be embedded into HTML documents.
as i read it, a CGI is a name given to any program that takes data from a browser and prints data to a browser. It really has nothing to do with language. While PHP is a scripted langauge that is interpreted by a module in apache (or by a perl cgi, as in earlier versions of php) it does fit that description.
Edit: I should explain too, that i believe it was a perl cgi that interpreted PHP in the early days, due to PHP's similarity to perl. Which both are very similar to C. PHP even has some object orientated capabilities now which makes it not too far off from c++. So if you've not messed with either, they won't be hard to learn if you know c/c++.
The one thing I've seen in PHP and perl that I havn't seen in C and C++ is that php and perl are very good at handling strings. They have something built into them called 'Regular Expressions' that I'd love to see in C or C++.
If you can master Regular Expressions, you can master most anything. I dare you to break down this line:
/"(?>(?:(?>[^"\\]+)|\\.)*)"/
There was a time when I could. But i'm out of practice now.