Feature request: "Insert as comment"

Working on new editor enhancements?
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2139
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Feature request: "Insert as comment"

Post 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...
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Feature request: "Insert as comment"

Post by Kaeru Gaman »

you mean, when inserting more than one line from another text editor...?
oh... and have a nice day.
User avatar
KJ67
Enthusiast
Enthusiast
Posts: 218
Joined: Fri Jun 26, 2009 3:51 pm
Location: Westernmost tip of Norway

Re: Feature request: "Insert as comment"

Post 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.
The best preparation for tomorrow is doing your best today.
User avatar
skywalk
Addict
Addict
Posts: 4218
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Feature request: "Insert as comment"

Post 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.)
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: Feature request: "Insert as comment"

Post by UserOfPure »

Why not just type ; before pasting? :lol:
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Feature request: "Insert as comment"

Post 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
oh... and have a nice day.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2139
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Feature request: "Insert as comment"

Post 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...).
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
freak
PureBasic Team
PureBasic Team
Posts: 5941
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Feature request: "Insert as comment"

Post 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:
quidquid Latine dictum sit altum videtur
User avatar
skywalk
Addict
Addict
Posts: 4218
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Feature request: "Insert as comment"

Post 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...
Last edited by skywalk on Mon Jul 07, 2014 11:24 pm, edited 1 time in total.
User avatar
Michael Vogel
Addict
Addict
Posts: 2807
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Feature request: "Insert as comment"

Post 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
Post Reply