Any nifty tricks for doing this? I'd like to generate html for given cpp example codes in a .chm help reference from cpp files.
formatting cpp source into html?
i suggest you checkout SyntaxHighlighter,...it supports C++.
"SyntaxHighlighter is an open source Java Script client side code syntax highlighter."
Here is a list of the supported languages.
or checkout Natural Docs...
I copied a brush and added vars for engine specific functions and variable types, and gave them their own colors. I'm happy with the results.
Even better would be if the functions could link to their description pages, as <a href="function.htm">function</a> does, for a page in the same folder. You happen to know a way to do this?
Alright, going with a two-pass approach, Chrome automation, and RegExReplace.
Thanks again. Cool formatter there. Works in .chm also, but slippery with the searches.