Syntax Highlighting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob Stevens

    #1

    Syntax Highlighting

    Does anyone have any samples on how to do syntax highlighting?

    I want to write a small program that will display sources like
    c#, c++ etc. But when I load the file to store it in a db, I would
    like to be able to see the different colors for the functions etc.

    Also, what control would I have to use to be able to paste images
    into? Lets say I input a lot of text, and I want to insert some images
    with the text also. Which control would that be?


    Thanks



  • Ignacio Machin \( .NET/ C# MVP \)

    #2
    Re: Syntax Highlighting

    Hi,

    RichTextBox maybe?

    --
    Ignacio Machin
    The #1 Warehouse Management System & Direct Store Delivery Software (DSD) for QuickBooks & ERP Systems – LaceUp Solutions

    Mobile & warehouse Solutions.
    "Rob Stevens" <robbstephens@s undry.comwrote in message
    news:ep8Oz9nQIH A.5016@TK2MSFTN GP06.phx.gbl...
    Does anyone have any samples on how to do syntax highlighting?
    >
    I want to write a small program that will display sources like
    c#, c++ etc. But when I load the file to store it in a db, I would
    like to be able to see the different colors for the functions etc.
    >
    Also, what control would I have to use to be able to paste images
    into? Lets say I input a lot of text, and I want to insert some images
    with the text also. Which control would that be?
    >
    >
    Thanks
    >
    >
    >

    Comment

    • BobF

      #3
      Re: Syntax Highlighting

      Have you looked at the IronPython sample?

      (( I haven't, but it *might* be worth looking at as it is a full language
      implementation ))



      "Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions .comwrote in
      message news:u8kghdoQIH A.4880@TK2MSFTN GP03.phx.gbl...
      Hi,
      >
      RichTextBox maybe?
      >
      --
      Ignacio Machin
      The #1 Warehouse Management System & Direct Store Delivery Software (DSD) for QuickBooks & ERP Systems – LaceUp Solutions

      Mobile & warehouse Solutions.
      "Rob Stevens" <robbstephens@s undry.comwrote in message
      news:ep8Oz9nQIH A.5016@TK2MSFTN GP06.phx.gbl...
      >Does anyone have any samples on how to do syntax highlighting?
      >>
      >I want to write a small program that will display sources like
      >c#, c++ etc. But when I load the file to store it in a db, I would
      >like to be able to see the different colors for the functions etc.
      >>
      >Also, what control would I have to use to be able to paste images
      >into? Lets say I input a lot of text, and I want to insert some images
      >with the text also. Which control would that be?
      >>
      >>
      >Thanks
      >>
      >>
      >>
      >
      >

      Comment

      • Ignacio Machin \( .NET/ C# MVP \)

        #4
        Re: Syntax Highlighting

        Hi,

        I do not understand what IronPython has to do with the question

        Could you explain further?

        --
        Ignacio Machin
        The #1 Warehouse Management System & Direct Store Delivery Software (DSD) for QuickBooks & ERP Systems – LaceUp Solutions

        Mobile & warehouse Solutions.
        "BobF" <rNfOrSePeAzMe@ charter.netwrot e in message
        news:%23Cd9kwwQ IHA.4272@TK2MSF TNGP06.phx.gbl. ..
        Have you looked at the IronPython sample?
        >
        (( I haven't, but it *might* be worth looking at as it is a full language
        implementation ))
        >
        >
        >
        "Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions .comwrote in
        message news:u8kghdoQIH A.4880@TK2MSFTN GP03.phx.gbl...
        >Hi,
        >>
        >RichTextBox maybe?
        >>
        >--
        >Ignacio Machin
        >http://www.laceupsolutions.com
        >Mobile & warehouse Solutions.
        >"Rob Stevens" <robbstephens@s undry.comwrote in message
        >news:ep8Oz9nQI HA.5016@TK2MSFT NGP06.phx.gbl.. .
        >>Does anyone have any samples on how to do syntax highlighting?
        >>>
        >>I want to write a small program that will display sources like
        >>c#, c++ etc. But when I load the file to store it in a db, I would
        >>like to be able to see the different colors for the functions etc.
        >>>
        >>Also, what control would I have to use to be able to paste images
        >>into? Lets say I input a lot of text, and I want to insert some images
        >>with the text also. Which control would that be?
        >>>
        >>>
        >>Thanks
        >>>
        >>>
        >>>
        >>
        >>
        >
        >

        Comment

        • BobF

          #5
          Re: Syntax Highlighting

          I thought it might be worthwhile to look at that sample to see how syntax
          highlighting was implemented for IP. The IP integration sample in the VS
          SDK.

          Alternatively, vim is another place to look.



          "Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions .comwrote in
          message news:OHreMxzQIH A.3940@TK2MSFTN GP05.phx.gbl...
          Hi,
          >
          I do not understand what IronPython has to do with the question
          >
          Could you explain further?
          >
          --
          Ignacio Machin
          The #1 Warehouse Management System & Direct Store Delivery Software (DSD) for QuickBooks & ERP Systems – LaceUp Solutions

          Mobile & warehouse Solutions.
          "BobF" <rNfOrSePeAzMe@ charter.netwrot e in message
          news:%23Cd9kwwQ IHA.4272@TK2MSF TNGP06.phx.gbl. ..
          >Have you looked at the IronPython sample?
          >>
          >(( I haven't, but it *might* be worth looking at as it is a full language
          >implementati on ))
          >>
          >>
          >>
          >"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions .comwrote
          >in message news:u8kghdoQIH A.4880@TK2MSFTN GP03.phx.gbl...
          >>Hi,
          >>>
          >>RichTextBox maybe?
          >>>
          >>--
          >>Ignacio Machin
          >>http://www.laceupsolutions.com
          >>Mobile & warehouse Solutions.
          >>"Rob Stevens" <robbstephens@s undry.comwrote in message
          >>news:ep8Oz9nQ IHA.5016@TK2MSF TNGP06.phx.gbl. ..
          >>>Does anyone have any samples on how to do syntax highlighting?
          >>>>
          >>>I want to write a small program that will display sources like
          >>>c#, c++ etc. But when I load the file to store it in a db, I would
          >>>like to be able to see the different colors for the functions etc.
          >>>>
          >>>Also, what control would I have to use to be able to paste images
          >>>into? Lets say I input a lot of text, and I want to insert some images
          >>>with the text also. Which control would that be?
          >>>>
          >>>>
          >>>Thanks
          >>>>
          >>>>
          >>>>
          >>>
          >>>
          >>
          >>
          >
          >

          Comment

          Working...