Code Editor

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

    Code Editor

    I would like to try my hand at writing a "code" editing program. You know
    the types - the ones with syntax highlighting and checking, spacing and tab
    alignment.

    What I don't quite understand is how to hold and manipulate the "code" being
    worked upon. What do I store the code in? A string is limited in length.
    I was thinking a RichText type perhaps? but how do you parse and work with
    this in general terms? I mean to add syntax highlighting - do you add it in
    then just before saving the "code" you strip this all back out?

    Any guides/techniques is greatly appreciated. If you know of any simple
    code that I could look at to learn from - that would be great too.

    Thanks
    Alan



  • Stephane Richard

    #2
    Re: Code Editor

    Well the RichText has a Text and RichText properties can contain plain text
    and formatted text respectively. You can use those to manipulate Formatted
    and unformatted text...

    if you do a search in http://www.planet-source-code.com under the VB
    category for Syntax highlighting you'll probably find a few examples that
    can get you on your way.

    --
    Stéphane Richard
    Senior Software and Technology Supervisor

    For all your hosting and related needs
    "Alan" <[email protected] > wrote in message
    news:dmw0b.2247 68$hOa.113478@n ews02.bloor.is. net.cable.roger s.com...[color=blue]
    > I would like to try my hand at writing a "code" editing program. You know
    > the types - the ones with syntax highlighting and checking, spacing and[/color]
    tab[color=blue]
    > alignment.
    >
    > What I don't quite understand is how to hold and manipulate the "code"[/color]
    being[color=blue]
    > worked upon. What do I store the code in? A string is limited in length.
    > I was thinking a RichText type perhaps? but how do you parse and work with
    > this in general terms? I mean to add syntax highlighting - do you add it[/color]
    in[color=blue]
    > then just before saving the "code" you strip this all back out?
    >
    > Any guides/techniques is greatly appreciated. If you know of any simple
    > code that I could look at to learn from - that would be great too.
    >
    > Thanks
    > Alan
    >
    >
    >[/color]


    Comment

    Working...