CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Location
    Germany, Cologne
    Posts
    83

    HELP: Checking Text for Syntax-Colors

    I've made a HTML-Editor in VB using the RichTextEditBox.

    Now I want to colour the tags etc..
    E.g. tag and name in blue, tagsubtypes in red and stringvalues in green (it's only an example!).

    How to do that running very fastly?
    Normaly it's too slow (on big files... take a nap...).


    Does someone know how'to manage that?

    Thanks!


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: HELP: Checking Text for Syntax-Colors

    Have you tried the code from the CodeGuru site at http://codeguru.developer.com/vb/articles/1739.shtml ?

    Failing that, you'll probably have to rewrite your code-colouring routines in C++ (I had to for my own program and it's about 10-20X faster in C++).

    There's examples of Syntax Highlighting available on the MFC codeguru site under the rich edit control (http://codeguru.developer.com/richedit/index.shtml).

    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

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

Featured