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. C#
  4. how to highlight syntax after loading a file into a richtextbox

how to highlight syntax after loading a file into a richtextbox

Scheduled Pinned Locked Moved C#
csharphelptutorial
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.
  • V Offline
    V Offline
    veluru krishna
    wrote on last edited by
    #1

    hi all, I am planning to implement a simple text editor in c#. Can anyone tell how to highlight the syntax after loading a file (which contains c# code) into a richtexbox.

    Don't wait to hear a word of thanks from anybody when you help them instead ask them to help three other people and ask them to continue in chain.

    E P 2 Replies Last reply
    0
    • V veluru krishna

      hi all, I am planning to implement a simple text editor in c#. Can anyone tell how to highlight the syntax after loading a file (which contains c# code) into a richtexbox.

      Don't wait to hear a word of thanks from anybody when you help them instead ask them to help three other people and ask them to continue in chain.

      E Offline
      E Offline
      ednrgc
      wrote on last edited by
      #2

      There isn't a built in property. This has to be programmed.

      1 Reply Last reply
      0
      • V veluru krishna

        hi all, I am planning to implement a simple text editor in c#. Can anyone tell how to highlight the syntax after loading a file (which contains c# code) into a richtexbox.

        Don't wait to hear a word of thanks from anybody when you help them instead ask them to help three other people and ask them to continue in chain.

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        You have to amend the raw rtf. This is quite a time consuming task.

        Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

        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