Online .cpp parsing into HTML
Is there an online CGI-script or a tool of some sort that I can use to parse my .cpp (or .c .h) files into nice looking HTML files?
In other words: I have a list of .cpp files that I update every week. I want to link to them using something like:
http://www.convert.com/convert.cgi http://www.mysite.com/myfile.cpp
So if I click on them - I get a nice coloured output.
How do I say this? Is this clear enough? Do you know an online script like this? I dont need source or how to make them, I just want a link...
Edited by - baskuenen on 11/6/00 9:06:25 PM
Hmm, that wouldn''t be to hard to implement with Perl. I dont know of any CGI''s but its possible there are. Maybe ill try making something like that, if I get something like that to work, ill inform you.
-----------------------------
A wise man once said "A person with half a clue is more dangerous than a person with or without one."
The Micro$haft BSOD T-Shirt
-----------------------------
A wise man once said "A person with half a clue is more dangerous than a person with or without one."
The Micro$haft BSOD T-Shirt
-----------------------------A wise man once said "A person with half a clue is more dangerous than a person with or without one."The Micro$haft BSOD T-Shirt
Thanks - I would greatly appreciate that!
If you do, I can really use that and I think there will be more programmers that can also!
If you do, I can really use that and I think there will be more programmers that can also!
I would sure use something like this
It would be helpful in maintaining a web site with updates to what has changed and what not. Plus, I could be easier to look at and can also be used for post''s on here so people can put up their entire code in a nice organized way
It would be helpful in maintaining a web site with updates to what has changed and what not. Plus, I could be easier to look at and can also be used for post''s on here so people can put up their entire code in a nice organized way
Hrm, well, I got most of it done. I can probably finish it by tommorow for you guys(around 10:00 EST), just bug test it on your sites. Right now, i gotta go to bed.
-----------------------------
A wise man once said "A person with half a clue is more dangerous than a person with or without one."
The Micro$haft BSOD T-Shirt
-----------------------------
A wise man once said "A person with half a clue is more dangerous than a person with or without one."
The Micro$haft BSOD T-Shirt
-----------------------------A wise man once said "A person with half a clue is more dangerous than a person with or without one."The Micro$haft BSOD T-Shirt
If ImmaGNUMan doesnt get it done, I could easily do one.
I could (with a little effort) get one that does nice color coding for sections between quotation marks, and sections in comments.
If you are interested in parsing a cpp file to break it up into various tokens, on my site there is a regular expression parser I wrote in cpp...
just tell it to go thru a bunch of expressions until it finds one that works and then because you know what expression it matched, you can color code it.
ex: "0x"(D|"A"|"B"|"C"|"D"|"E"|"F")*
would match any hexadecimal number specified as 0x123AB (for example). The letters A to F may also have to be specified in lowwer case too unless you did a little modification to my code.
just a thought
regards,
GeniX
www.cryo-genix.net
I could (with a little effort) get one that does nice color coding for sections between quotation marks, and sections in comments.
If you are interested in parsing a cpp file to break it up into various tokens, on my site there is a regular expression parser I wrote in cpp...
just tell it to go thru a bunch of expressions until it finds one that works and then because you know what expression it matched, you can color code it.
ex: "0x"(D|"A"|"B"|"C"|"D"|"E"|"F")*
would match any hexadecimal number specified as 0x123AB (for example). The letters A to F may also have to be specified in lowwer case too unless you did a little modification to my code.
just a thought
regards,
GeniX
www.cryo-genix.net
regards,GeniXwww.cryo-genix.net
Whaow! I''m amazed how simple you guys approach this!
Colouring keywords, strings and defines would be good enough for me
If you get this working perfectly - You got my respect
Colouring keywords, strings and defines would be good enough for me
If you get this working perfectly - You got my respect
It really isn''t that difficult. I would have to get myself up-to-date with CGI, but I think it would be fairly easy also...
-Chris Bennett of Dwarfsoft - Site:"The Philosophers'' Stone of Programming Alchemy" - IOL
The future of RPGs - Thanks to all the goblins over in our little Game Design Corner niche
-Chris Bennett of Dwarfsoft - Site:"The Philosophers'' Stone of Programming Alchemy" - IOL
The future of RPGs - Thanks to all the goblins over in our little Game Design Corner niche
IF we get it to work, we must also have a server that accepts this script type and is always online - even after a few years! If not, all the links made with this tool, would go wrong.
If you dont have a good server yet - I can ask my host CFXweb if they can put it up? If you are interrested? I dont know what kind of scripts they accept.
But I'm getting way ahead of things...
Edited by - BasKuenen on November 6, 2000 12:07:19 AM
If you dont have a good server yet - I can ask my host CFXweb if they can put it up? If you are interrested? I dont know what kind of scripts they accept.
But I'm getting way ahead of things...
Edited by - BasKuenen on November 6, 2000 12:07:19 AM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement