Shop OBEX P1 Docs P2 Docs Learn Events
PBasic IDE feature request/suggestion. — Parallax Forums

PBasic IDE feature request/suggestion.

Clock LoopClock Loop Posts: 2,069
edited 2005-11-22 22:45 in General Discussion
Here is my suggestion for any newer version of PBasic IDE!

Allow "commenting out" all currently highlighted code'

That is all.

"jumps off soapbox"


The reason this feature might be handy is because I find myself wanting to keep existing code WHILE I try out new code, incase my new code totally sucks or dosen't work at all, then I can use old code as reference. Its ALOT eaiser to comment out MASS code than to cut and paste or the like.

[noparse]:)[/noparse]

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-11-21 23:31
    As a matter of fact I made that suggestion (based on another thread) to our compiler engineer this morning and he said he would work on it. He's given no ETA yet, and being a busy guy I'm not going to try to squeeze that out of him. Of course, there has to be a facility to uncomment big blocks as well so he's got to implement that as well -- that said, he thinks it can be done.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • John R.John R. Posts: 1,376
    edited 2005-11-22 16:04
    As an alternative (and possibly easier???) solution, how about "block" type comments, like in C:

    /* These two characters (or some other special symbol(s) start a multi-line or block comment
    this is still comment
    so is this
    the two characters at the end of this line end the comment */

    This is code

    'this is a single line comment

    this is more code

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John R.

    8 + 8 = 10
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-11-22 16:08
    That probably won't happen -- that's a C construct and we would like to remain as BASIC-like as possible -- it would also mean retooling the compiler instead of just the editor (they are in fact separate chunks of code).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • John R.John R. Posts: 1,376
    edited 2005-11-22 17:12
    I understand what you're saying about compiler vs. editor.

    I would also suggest that the lack of a "block comment" in basic (or any other language) is a fundamental flaw in all implementations, but then I suppose others would argue that the existance of a block comment is equally a fundamental flaw in a language that supports them.

    Maybe block comments could get put on the wish list for version 4 or 5...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John R.

    8 + 8 = 10
  • Kevin WoodKevin Wood Posts: 1,266
    edited 2005-11-22 18:14
    How about widening the gutter next to the line numbers, and ctrl/alt/shift/etc-clicking the block you want commented? Put little icons with matching numbers so it will be easy to see the block.

    BTW, what do the little yellow icons represent? Breakpoints, or just reminders?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-11-22 20:23
    Kevin,

    ·· When you click down the left side of the editor window and the yellow numbered circles appear, these are bookmarks.· They do not get saved when you save the source code.· They're useful in debugging.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-11-22 22:45
    I'm not updating the editor, so don't hold me to this.... I think what our compiler engineer is going to do is let you select block of lines an then hit a comment button that will put an apostrophe in column 1 of each line. Likewise, you will be able to "uncomment" those lines in the same manner.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.