source file to HTML...

This is a discussion on source file to HTML... within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I am just wondering if anyone here knows of a good free source code file to HTML "converter" like program. ...

  1. #1
    Madly in anger with you
    Join Date
    Nov 2005
    Posts
    211

    source file to HTML...

    I am just wondering if anyone here knows of a good free source code file to HTML "converter" like program.

    incase this sounds weird to you, I will tell you what I mean.

    I am looking for something that can input a C or C++ source file into that will output an HTML version of the file. this HTML version would highlight things like keywords with the same color MSVC++ highlights them with (blue), and perform related enhancing of the source code to make it look just like it would in the MSVC editor.

    I know I could do this manually, but I don't know much HTML, and even if I did it would be a tedious task with large programs. I also know that I could write my own program to do this, but that would be hard with my basic knowledge of HTML.

    I'm sure some people here have used something like this before, and some may have even wrote their own. could anyone please recommend one of these for me?


    thank you in advance.

    Intel Core 2 Quad Q6600 @ 2.40 GHz
    3072 MB PC2-5300 DDR2
    2 x 320 GB SATA (640 GB)
    NVIDIA GeForce 8400GS 256 MB PCI-E

  2. #2
    Registered User
    Join Date
    Nov 2006
    Posts
    13
    Most C/C++ IDEs like devcpp or codeblocks can do this for you.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I am just wondering if anyone here knows of a good free source code file to HTML "converter" like program.
    I use one for the source code on my website, but it's quick and dirty, and tailored to the style sheets. I'll see if I can find the source for it.
    My best code is written with the delete key.

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    752
    It sounds like you're describing Doxygen.
    http://www.stack.nl/~dimitri/doxygen/index.html

    It's generally geared forgenerating documented code, but you can have it just spit up highlighted source files. A simple example:
    www.questionc.com/dox/html/
    Callou collei we'll code the way
    Of prime numbers and pings!

  5. #5
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246

  6. #6
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,047
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to build, run Boland C++ 6 source file via VS2005?
    By userpingz in forum C++ Programming
    Replies: 2
    Last Post: 05-21-2009, 03:25 AM
  2. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 04:02 AM
  3. Source file inclusion
    By sh3rpa in forum C++ Programming
    Replies: 7
    Last Post: 10-02-2007, 11:10 AM
  4. Class methods in header or source file?
    By TriKri in forum C++ Programming
    Replies: 13
    Last Post: 09-17-2007, 05:23 AM
  5. view source of html file
    By bballzone in forum C++ Programming
    Replies: 17
    Last Post: 09-04-2004, 04:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21