Results 1 to 5 of 5

Thread: Syntax Highlighting Text Box

  1. #1

    Thread Starter
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Syntax Highlighting Text Box

    I created a Win Form text box, that inherits from RichTextBox, that will highlight key words. I used an interface so additional languages can be added in the future. Right now I've just done SQL highlighting. As of now the box will not do block commenting, but I'm thinking of adding it when I get some time. Original code came from
    http://pietschsoft.com/Blog/Post.aspx?PostID=491

    [EDIT] New version added below
    Last edited by wild_bill; Jul 27th, 2007 at 09:48 AM.

  2. #2
    Addicted Member
    Join Date
    Dec 2005
    Posts
    139

    Re: Syntax Highlighting Text Box

    I tried adding it via the toolbox and then to a form like a standard textbox/rich textbox but it throws several errors. If I try to add it as a reference it doesn't show.

    How exactly is this supposed to work? Can you provide a sample project with your control?

    Thanks,
    CT

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Syntax Highlighting Text Box

    Per this policy regarding CodeBank attachments, I have edited your zip file and removed all compiled files.

    Please place only source code in attachments.

    Thank you.

  4. #4

    Thread Starter
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Syntax Highlighting Text Box

    I have updated the original project, and am attaching a sample.
    Attached Files Attached Files

  5. #5

    Thread Starter
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Syntax Highlighting Text Box

    I converted the projects for visual studio 2005
    Attached Files Attached Files

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