Page 1 of 1

Feature request: "Insert as comment"

Posted: Fri Feb 12, 2010 7:10 pm
by Andre
As the topic says... it would be a handy feature:
This would help to insert some text as comment into the code (the IDE should add "; " in front of each lines automatically before inserting in the code view), while currently the IDE always detects "keyword, command, etc." names in the text and change the first letter to big char. This must be corrected manually then...

Re: Feature request: "Insert as comment"

Posted: Fri Feb 12, 2010 7:18 pm
by Kaeru Gaman
you mean, when inserting more than one line from another text editor...?

Re: Feature request: "Insert as comment"

Posted: Fri Feb 12, 2010 7:25 pm
by KJ67
To aid copy/paste from other editors a CommentSection/EndComment section would be both practical, allow adjusting line lengths and following the syntax.

Re: Feature request: "Insert as comment"

Posted: Fri Feb 12, 2010 7:38 pm
by skywalk
I prefer Edit - Paste - Special.
That follows established GUIs such as Excel and others.
Then the 'special' dialog can allow further options.
(Definitely annoyed by keyword capitalization on text pastes.)

Re: Feature request: "Insert as comment"

Posted: Sat Feb 13, 2010 1:01 pm
by UserOfPure
Why not just type ; before pasting? :lol:

Re: Feature request: "Insert as comment"

Posted: Sat Feb 13, 2010 1:19 pm
by Kaeru Gaman
why not just read before posting? :lol:

it's about more than one line.

a parallel functionality to adding ; at the beggining -> insert as comment
could be adding " at beginning and end of a line -> insert as quoted text

Re: Feature request: "Insert as comment"

Posted: Sat Feb 13, 2010 1:39 pm
by Andre
Kaeru Gaman wrote:you mean, when inserting more than one line from another text editor...?
Yes, exactly.

Inserting a multi-line block of text as comment (= with "; " in front of it), because you can't do this easily at the moment (currently the Syntax-Highlighting will always detect keywords/commands/etc. and change their first char...).

Re: Feature request: "Insert as comment"

Posted: Sat Feb 13, 2010 3:25 pm
by freak
Andre wrote:Inserting a multi-line block of text as comment (= with "; " in front of it), because you can't do this easily at the moment (currently the Syntax-Highlighting will always detect keywords/commands/etc. and change their first char...).
Well, you could just write a tool for the IDE to add the ";"'s to the text in the clipboard in 10 lines of code, problem solved.

You are all programmers... be a little creative! :wink:

Re: Feature request: "Insert as comment"

Posted: Sat Feb 13, 2010 3:55 pm
by skywalk
I'm beginning to "get" this freak character...He's more, "Don't ask, just DO!".

So, yes, let's all list our annoyances or time-saving tips and submit them on say maybe a ....hmmmm....now where should I list them? Is this FORUM still accepting inputs?!!

rant over...

Re: Feature request: "Insert as comment"

Posted: Sun Feb 14, 2010 3:58 pm
by Michael Vogel
There's another reason to get ";" easily at the beginning of one (or more) lines, which can be seen when put something like this into the editor:

Code: Select all

Message(s+" enter valid value: 3 to 5 or 7 to 11")
Now I want to change the line to:

Code: Select all

Message("Oh no! "+s+" enter valid value: 3 to 5 or 7 to 11")
But when the first doublequote will have been entered, the "to" and "or" have already been changed to "To" and "Or" :cry:

A hotkey for adding/removing a semicolon to the top of one line could be fine, when I want to paste a text with a couple of lines, I would do this with a text editor before pasting the text...

Michael