Click here to Skip to main content
15,881,852 members
Articles / Programming Languages / C++

Convert C++ files to html documents

Rate me:
Please Sign up or sign in to vote.
1.30/5 (37 votes)
14 Nov 2003 93.1K   1K   22   24
A utility that converts your source code to an HTML document maintaining colorization and indentation

Introduction

CPPtoHTML reformats cpp files so the code can be properly displayed on a webpage.
It also colorizes it using a style sheet so that the colors are easy to customize.
Sorry there is no source code to accompany this as I don't have time to properly comment my code.

Using the Application

Simply drag and drop any file containing C++ code onto the executable and it will create an htm file with the same name.
Be sure to change the link to the css file in the htm file header to its location on your web server.

Updates

Nov 18: I Fixed all the bugs mentioned below

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionAre you using my work? Pin
Adrian Dorache30-Jan-09 22:30
Adrian Dorache30-Jan-09 22:30 
It seems you just simply copy-pasted my article. You didn't even bother to remove the link pointing to my blog.
Not to mention the comments inside the sources pointing to my website ...


AnswerRe: Are you using my work? Pin
Monkey_Drone31-Jan-09 17:13
Monkey_Drone31-Jan-09 17:13 
GeneralRe: Are you using my work? Pin
Adrian Dorache31-Jan-09 20:30
Adrian Dorache31-Jan-09 20:30 
GeneralRe: Are you using my work? Pin
Chris Maunder20-Apr-09 7:46
cofounderChris Maunder20-Apr-09 7:46 
Questionis it the software make source code colorful? Pin
wuchuanren11-Aug-06 3:18
wuchuanren11-Aug-06 3:18 
AnswerRe: is it the software make source code colorful? Pin
wuchuanren11-Aug-06 3:21
wuchuanren11-Aug-06 3:21 
GeneralBugs & Bugs Pin
sunts19-Jan-06 19:18
sunts19-Jan-06 19:18 
GeneralOther Alternatives Pin
MattyT18-Nov-03 11:48
MattyT18-Nov-03 11:48 
GeneralRe: Other Alternatives Pin
Liam O'Hagan18-Jan-06 0:46
Liam O'Hagan18-Jan-06 0:46 
GeneralIndentation Pin
Matthew Berry17-Nov-03 22:39
Matthew Berry17-Nov-03 22:39 
GeneralRe: Indentation Pin
Monkey_Drone17-Nov-03 22:43
Monkey_Drone17-Nov-03 22:43 
GeneralRe: Indentation Pin
Matthew Berry17-Nov-03 22:52
Matthew Berry17-Nov-03 22:52 
GeneralRe: Indentation Pin
Monkey_Drone17-Nov-03 22:58
Monkey_Drone17-Nov-03 22:58 
GeneralRe: Indentation Pin
Matthew Berry17-Nov-03 23:03
Matthew Berry17-Nov-03 23:03 
GeneralRe: Indentation Pin
Monkey_Drone17-Nov-03 23:13
Monkey_Drone17-Nov-03 23:13 
QuestionCtoHTML? Pin
Indivara17-Nov-03 20:10
professionalIndivara17-Nov-03 20:10 
AnswerRe: CtoHTML? Pin
Monkey_Drone17-Nov-03 23:15
Monkey_Drone17-Nov-03 23:15 
GeneralWow Pin
Monkey_Drone16-Nov-03 12:58
Monkey_Drone16-Nov-03 12:58 
GeneralRe: Wow Pin
Nitron16-Nov-03 15:56
Nitron16-Nov-03 15:56 
QuestionArticle? Sources? Pin
whizer16-Nov-03 8:32
whizer16-Nov-03 8:32 
AnswerRe: Article? Sources? Pin
Monkey_Drone16-Nov-03 13:06
Monkey_Drone16-Nov-03 13:06 
GeneralRe: Article? Sources? Pin
whizer16-Nov-03 20:22
whizer16-Nov-03 20:22 
GeneralConvert ??? to HTML Pin
Ali Khanlarkhani16-Nov-03 3:15
Ali Khanlarkhani16-Nov-03 3:15 
GeneralRe: Convert ??? to HTML Pin
Monkey_Drone16-Nov-03 12:49
Monkey_Drone16-Nov-03 12:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.