Results 1 to 6 of 6

Thread: HTML <-> C++ heiglighter

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Resolved 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.

  2. #2
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Re: HTML <-> C++ heiglighter

    I downloaded one... Here I attach it. I hope it is what you are looking for.
    Attached Files 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

  3. #3

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    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.


    ØØ

  4. #4
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    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

  5. #5

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    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.



    ØØ

  6. #6
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    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
  •  



Click Here to Expand Forum to Full Width