Menu

request for new editor feature

2003-09-29
2012-09-26
  • Giuliano Lotta

    Giuliano Lotta - 2003-09-29

    Once upon a time when we used PC XT :-), there was a very tiny editor called E (e.exe by IBM; character editor, 1980's...)

    One BIG feature of this incredible small program was a particualar keyword/syntax completion for many languages (pascal, C, ada, modula2, asm, cobol); The particular completion in this way:

    Just for example, typing "for" in a C file, the complete for statement was generated with even the comment, litterally: "for (;;) { } /* for loop*"
    Even more the cursor positioned at the first position in the (;;) and moved at the second position after pressin "enter", and so on.

    The same appened starting the declaration"f1()", a complete "f1() { } /* end of f1 */ was generated.

    Now I let you imaging wath happened when typing, case, switch, and so on... :-))

    Is it possible to think such a feature in the final 5.0 DEV-C++ ??

    I think it should be easily achieved, using the same token list for the color highlight: when the procedure recognize the starting token, not only activate the predefined color, but also generate the predefined sequence  (i.e. for (;;) {}  /*end for*/ , if () then {} else {} /*end if */......)

    What do you think about ?
    Giuliano

     
    • Curtis Sutter

      Curtis Sutter - 2003-11-17

      I like this idea, I however have had problems with this in VB.NET  When you type IF ... Then and hit enter, it will make the end if for you.  This can be a pain if you plan to do one-line of code If ... then ...  so you don't need the end if.  Now if something like this was put in, all I ask is that there be a way to turn it off easily :-)

      Curtis

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.