开发者

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 开发者_JS百科(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...


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.


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++.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜