Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Colour key words in an RTF box

Colour key words in an RTF box

Scheduled Pinned Locked Moved Visual Basic
csharpquestionlearning
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 1 Offline
    1 Offline
    1 21 Gigawatts
    wrote on last edited by
    #1

    Hi there! I am learning VB.net, and want to develop my own text editor for program code. How would I colour certain key words only?? If someone could point me in the right direction I would be most grateful! Many thanks in advance, Dan Fowler

    L 1 Reply Last reply
    0
    • 1 1 21 Gigawatts

      Hi there! I am learning VB.net, and want to develop my own text editor for program code. How would I colour certain key words only?? If someone could point me in the right direction I would be most grateful! Many thanks in advance, Dan Fowler

      L Offline
      L Offline
      Lasse
      wrote on last edited by
      #2

      You could easily catch evt the KeyUp event and see if theres somthing typed in that should be colorised..the keywords you could have in an array or something.. simply look up if theres is a match in the array, and then set the color. Hmm...

      R 1 Reply Last reply
      0
      • L Lasse

        You could easily catch evt the KeyUp event and see if theres somthing typed in that should be colorised..the keywords you could have in an array or something.. simply look up if theres is a match in the array, and then set the color. Hmm...

        R Offline
        R Offline
        Ray Cassick
        wrote on last edited by
        #3

        You also need to be able to manage things like cut/copy/paste and the crazy way the poeple can edit (moving cursor around). All in all it is not really easy, and an clear, fast, easy methid is not trivial.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups