Results 1 to 1 of 1

Thread: "Syntax Highlighting", if you will...

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    43

    "Syntax Highlighting", if you will...

    I am making a program that has its own little syntax highlighting thing. For example, I have:

    VB Code:
    1. if workSpace.Text.StartsWith("<>") then
    2. workSpace.ForeColor = Color.Blue
    3. end if

    Now that works all fine and dandy, but when I erase the <> the text color stays blue.

    Should I use an else statement here?
    Does anyone have any solutions?

    I also need to know how do I access the different lines of the richtextbox (workSpace), EXAMPLE:
    If I want the font to be blue if <> is on the first line. But, if I press enter, it will be black again, so I could add a different syntax than <>, such as @> or !>, ect ect ect.

    *this is not a Java, C++, Ruby, or any other programming language editor*
    Last edited by pSY cO.; Jul 15th, 2006 at 08:55 AM. Reason: left something out
    I can help with C++, Java (some), vB, Ruby/RoR, Python, JavaScript, and TorqueScript

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