Syntax highlighter or parser component (for VB, C#, SQL, etc)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Conner

    Syntax highlighter or parser component (for VB, C#, SQL, etc)


    Hi,

    I am writing an application in C# that needs a memo control with the
    capability of highlight certain syntax of programming languages, very
    similar to what the Vs.Net does, or any language editor does. This should be
    the type of control that can accepts different inputs, since I need to
    display, VB, C# and SQL code, in nice highlighter colors.
    It won't compile or anything, so I don't need grammar checking, just the
    lexical tool.


    Thanks in advance,



    P.S. If this is not the appropiate newsgroup to post this request, can
    anybody point me which is the correct newsgroup to post about 3rd party
    components/controls ?



  • Chris Taylor

    #2
    Re: Syntax highlighter or parser component (for VB, C#, SQL, etc)

    Hi,

    The SharpDevelop team have an editor. I have used there editor in source
    form in my own projects and it works quite well.
    http://www.icsharpcode.net. The editor is part of the #develop project.

    Hope this helps

    Chris Taylor
    "Tim Conner" <timconner@hotm ail.com> wrote in message
    news:O9N%23aekh DHA.616@TK2MSFT NGP11.phx.gbl.. .[color=blue]
    >
    > Hi,
    >
    > I am writing an application in C# that needs a memo control with the
    > capability of highlight certain syntax of programming languages, very
    > similar to what the Vs.Net does, or any language editor does. This should[/color]
    be[color=blue]
    > the type of control that can accepts different inputs, since I need to
    > display, VB, C# and SQL code, in nice highlighter colors.
    > It won't compile or anything, so I don't need grammar checking, just the
    > lexical tool.
    >
    >
    > Thanks in advance,
    >
    >
    >
    > P.S. If this is not the appropiate newsgroup to post this request, can
    > anybody point me which is the correct newsgroup to post about 3rd party
    > components/controls ?
    >
    >
    >[/color]


    Comment

    • Horatiu Ripa

      #3
      Re: Syntax highlighter or parser component (for VB, C#, SQL, etc)

      Or use Regex and try to add a lexical dictionary for what you need.

      --
      Horatiu Ripa

      "Tim Conner" <timconner@hotm ail.com> wrote in message
      news:O9N#aekhDH A.616@TK2MSFTNG P11.phx.gbl...[color=blue]
      >
      > Hi,
      >
      > I am writing an application in C# that needs a memo control with the
      > capability of highlight certain syntax of programming languages, very
      > similar to what the Vs.Net does, or any language editor does. This should[/color]
      be[color=blue]
      > the type of control that can accepts different inputs, since I need to
      > display, VB, C# and SQL code, in nice highlighter colors.
      > It won't compile or anything, so I don't need grammar checking, just the
      > lexical tool.
      >
      >
      > Thanks in advance,
      >
      >
      >
      > P.S. If this is not the appropiate newsgroup to post this request, can
      > anybody point me which is the correct newsgroup to post about 3rd party
      > components/controls ?
      >
      >
      >[/color]


      Comment

      • Tim Conner

        #4
        Re: Syntax highlighter or parser component (for VB, C#, SQL, etc)


        Horatiu :

        Where do I find such "Regex" ?
        A google search returned tons of different things.

        Thanks in advance,




        "Horatiu Ripa" <unreal@busines sco.us> wrote in message
        news:uakvSkohDH A.1956@TK2MSFTN GP10.phx.gbl...[color=blue]
        > Or use Regex and try to add a lexical dictionary for what you need.
        >
        > --
        > Horatiu Ripa
        >
        > "Tim Conner" <timconner@hotm ail.com> wrote in message
        > news:O9N#aekhDH A.616@TK2MSFTNG P11.phx.gbl...[color=green]
        > >
        > > Hi,
        > >
        > > I am writing an application in C# that needs a memo control with the
        > > capability of highlight certain syntax of programming languages, very
        > > similar to what the Vs.Net does, or any language editor does. This[/color][/color]
        should[color=blue]
        > be[color=green]
        > > the type of control that can accepts different inputs, since I need to
        > > display, VB, C# and SQL code, in nice highlighter colors.
        > > It won't compile or anything, so I don't need grammar checking, just the
        > > lexical tool.
        > >
        > >
        > > Thanks in advance,
        > >
        > >
        > >
        > > P.S. If this is not the appropiate newsgroup to post this request, can
        > > anybody point me which is the correct newsgroup to post about 3rd party
        > > components/controls ?
        > >
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Tom

          #5
          Re: Syntax highlighter or parser component (for VB, C#, SQL, etc)

          The RegEx component in the .NET Framework should do fine. Just check the
          documentation.
          Tom Clement
          Apptero, Inc.


          "Tim Conner" <timconner@hotm ail.com> wrote in message
          news:%23letkNrh DHA.2164@TK2MSF TNGP09.phx.gbl. ..[color=blue]
          >
          > Horatiu :
          >
          > Where do I find such "Regex" ?
          > A google search returned tons of different things.
          >
          > Thanks in advance,
          >
          >
          >
          >
          > "Horatiu Ripa" <unreal@busines sco.us> wrote in message
          > news:uakvSkohDH A.1956@TK2MSFTN GP10.phx.gbl...[color=green]
          > > Or use Regex and try to add a lexical dictionary for what you need.
          > >
          > > --
          > > Horatiu Ripa
          > >
          > > "Tim Conner" <timconner@hotm ail.com> wrote in message
          > > news:O9N#aekhDH A.616@TK2MSFTNG P11.phx.gbl...[color=darkred]
          > > >
          > > > Hi,
          > > >
          > > > I am writing an application in C# that needs a memo control with the
          > > > capability of highlight certain syntax of programming languages, very
          > > > similar to what the Vs.Net does, or any language editor does. This[/color][/color]
          > should[color=green]
          > > be[color=darkred]
          > > > the type of control that can accepts different inputs, since I need to
          > > > display, VB, C# and SQL code, in nice highlighter colors.
          > > > It won't compile or anything, so I don't need grammar checking, just[/color][/color][/color]
          the[color=blue][color=green][color=darkred]
          > > > lexical tool.
          > > >
          > > >
          > > > Thanks in advance,
          > > >
          > > >
          > > >
          > > > P.S. If this is not the appropiate newsgroup to post this request, can
          > > > anybody point me which is the correct newsgroup to post about 3rd[/color][/color][/color]
          party[color=blue][color=green][color=darkred]
          > > > components/controls ?
          > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...