Samaursa
Samaursa

Reputation: 17197

Code (C++) to html converter for Forums

I have searched for quite some time and was unable to find a program that is able to convert code to html quickly for use in forums, but not web-pages, in which case it cannot use style-sheets and does not output (or has the option to turn off) all extraneous tags such as html, body etc. Does it exist? If not, then I know what my next side project will be...

Upvotes: 1

Views: 1275

Answers (3)

Samaursa
Samaursa

Reputation: 17197

I finally found one that does exactly what I want it to do. The reason it was not showing up easily in search results is due to its name, Source to Html (instead of Code to Html).

http://www.newty.de/lsc/

Hope this helps someone in the future.

Upvotes: 0

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798626

Passing noclasses=True to Pygment's HTMLFormatter will tell it to use inline styles instead of CSS. This should also be supported in its pygmentize command.

Upvotes: 1

Shamim Hafiz - MSFT
Shamim Hafiz - MSFT

Reputation: 22094

In SO, we are able to give syntax highlighting to our codes. This is something similar to what you would want. Though, I am not sure if there is one you can readily use which is implemented in C++.

Upvotes: 0

Related Questions