Feb 10th, 2005, 04:56 PM
#1
HTML <-> C++ heiglighter
Have anyone ever made or seen an app (with source) that takes C++ or VB or actualy any lanugage (c++ is prefered) as input and output HTML code where the code is heighligted.
It HAS to use CSS to format the text. If it is using Tables and stuff, then it is useless. And I will just make my own.
Anyone seen or made one?
ØØ
Last edited by NoteMe; Feb 10th, 2005 at 07:10 PM .
Feb 10th, 2005, 06:29 PM
#2
Frenzied Member
Re: HTML <-> C++ heiglighter
I downloaded one... Here I attach it. I hope it is what you are looking for.
Attached Files
We miss you, friend...
Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
Feb 10th, 2005, 06:37 PM
#3
Re: HTML <-> C++ heiglighter
Now that looks more like it. It needs some improvements, and add C++ syntax but this is the best base I have seen. Thanks a lot.
I am realy greatfull.
ØØ
Feb 10th, 2005, 08:33 PM
#4
Frenzied Member
Re: HTML <-> C++ heiglighter
I am glad I could help you.
We miss you, friend...
Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
Feb 11th, 2005, 03:04 PM
#5
Re: HTML <-> C++ heiglighter
After testing your app a bit more, and started to fix the keywords, I saw it is realy flawed. If you have a line like this:
if(bNonsens){
//Foo
}
then it won't even heighlight the if because it looks at it as if( and not if. So I would have to redo the whole seach function to make it work.
But at the same time I got a link to an other app that does it for C++. With source code. It can be found here:
http://www.codeproject.com/cpp/cpphtml.asp
It is 100 times faster, and it is all ready using C++ keywords and comments.
So I will go for this one for now.
ØØ
Feb 13th, 2005, 01:10 AM
#6
Frenzied Member
Re: HTML <-> C++ heiglighter
Thanks for the tip... I really hadn't time to check it since I downloaded it.
I am sorry it wasn't what you were looking for
We miss you, friend...
Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width