Is there a standard way to convert cpp code to HTML (for the purpose of publishing code samples on a website)? I am hoping there is a way to preserve the text coloring used in visual studio. Thanks.
Is there a standard way to convert cpp code to HTML (for the purpose of publishing code samples on a website)? I am hoping there is a way to preserve the text coloring used in visual studio. Thanks.
The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.
I dont know what compiler you are using but I can do it in dev-c++
I'm using Visual Studio.Net...it's surprising that the option is not available (or at least I couldn't find it). Any other ideas?
The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.
Download a copy of Dev-CPP and use it's export feature
Perhaps this page is something for you?
http://www.rafb.net/paste/
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
Highlight 2.2 is a nice utility that will convert your code into colored output in HTML, XHTML, RTF, TeX, LaTeX, XSL-FO and XML format.
I used to use this - http://www.sunlightd.com/Projects/CPPtoHTML/
i wrote my own little program to do this, pretty easy to do
:wq
As I was reading these posts, I was thinking of writing a program to do it...not because it's needed, but it just sounds kind of fun.
I was thinking of using the output of the www.rafb.net page as a starting place on what the HTML should look like.
BTW, thanks everyone for the info.
The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.
that won't hold up colors or anything...Originally Posted by B0bDole
I use this program for HTML and vB exporting of my C/C++ code. It's also capable of Visual Basic code, and since it's open source, you can learn alot from it.
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
I just finished my own version. Yes...the <pre> tag was useful.
The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.