Click here to Skip to main content
15,564,198 members
Articles / Programming Languages / C++
Article
Posted 14 Nov 2003

Stats

89.7K views
996 downloads
22 bookmarked

Convert C++ files to html documents

Rate me:
Please Sign up or sign in to vote.
1.30/5 (37 votes)
14 Nov 2003
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 23:30
Adrian Dorache30-Jan-09 23:30 
AnswerRe: Are you using my work? Pin
Monkey_Drone31-Jan-09 18:13
Monkey_Drone31-Jan-09 18:13 
GeneralRe: Are you using my work? Pin
Adrian Dorache31-Jan-09 21:30
Adrian Dorache31-Jan-09 21:30 
It's very weird what happened. It seems to be a bug of Code Project web site.
I will report it to site admins.
Thank you and sorry if I was rude to you.


GeneralRe: Are you using my work? Pin
Chris Maunder20-Apr-09 8:46
cofounderChris Maunder20-Apr-09 8:46 
Questionis it the software make source code colorful? Pin
wuchuanren11-Aug-06 4:18
wuchuanren11-Aug-06 4:18 
AnswerRe: is it the software make source code colorful? Pin
wuchuanren11-Aug-06 4:21
wuchuanren11-Aug-06 4:21 
GeneralBugs & Bugs Pin
sunts19-Jan-06 20:18
sunts19-Jan-06 20:18 
GeneralOther Alternatives Pin
MattyT18-Nov-03 12:48
MattyT18-Nov-03 12:48 
GeneralRe: Other Alternatives Pin
Liam O'Hagan18-Jan-06 1:46
Liam O'Hagan18-Jan-06 1:46 
GeneralIndentation Pin
Matthew Berry17-Nov-03 23:39
Matthew Berry17-Nov-03 23:39 
GeneralRe: Indentation Pin
Monkey_Drone17-Nov-03 23:43
Monkey_Drone17-Nov-03 23:43 
GeneralRe: Indentation Pin
Matthew Berry17-Nov-03 23:52
Matthew Berry17-Nov-03 23:52 
GeneralRe: Indentation Pin
Monkey_Drone17-Nov-03 23:58
Monkey_Drone17-Nov-03 23:58 
GeneralRe: Indentation Pin
Matthew Berry18-Nov-03 0:03
Matthew Berry18-Nov-03 0:03 
GeneralRe: Indentation Pin
Monkey_Drone18-Nov-03 0:13
Monkey_Drone18-Nov-03 0:13 
QuestionCtoHTML? Pin
Indivara17-Nov-03 21:10
professionalIndivara17-Nov-03 21:10 
AnswerRe: CtoHTML? Pin
Monkey_Drone18-Nov-03 0:15
Monkey_Drone18-Nov-03 0:15 
GeneralWow Pin
Monkey_Drone16-Nov-03 13:58
Monkey_Drone16-Nov-03 13:58 
GeneralRe: Wow Pin
Nitron16-Nov-03 16:56
Nitron16-Nov-03 16:56 
QuestionArticle? Sources? Pin
whizer16-Nov-03 9:32
whizer16-Nov-03 9:32 
AnswerRe: Article? Sources? Pin
Monkey_Drone16-Nov-03 14:06
Monkey_Drone16-Nov-03 14:06 
GeneralRe: Article? Sources? Pin
whizer16-Nov-03 21:22
whizer16-Nov-03 21:22 
GeneralConvert ??? to HTML Pin
Ali Khanlarkhani16-Nov-03 4:15
Ali Khanlarkhani16-Nov-03 4:15 
GeneralRe: Convert ??? to HTML Pin
Monkey_Drone16-Nov-03 13:49
Monkey_Drone16-Nov-03 13: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.