Feature request: "Insert as comment"
- Andre
- PureBasic Team
- Posts: 2139
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Feature request: "Insert as comment"
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...
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...
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: Feature request: "Insert as comment"
you mean, when inserting more than one line from another text editor...?
oh... and have a nice day.
Re: Feature request: "Insert as comment"
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.
Re: Feature request: "Insert as comment"
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.)
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.)
-
- Enthusiast
- Posts: 469
- Joined: Sun Mar 16, 2008 9:18 am
Re: Feature request: "Insert as comment"
Why not just type ; before pasting? 

- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: Feature request: "Insert as comment"
why not just read before posting?
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

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.
- Andre
- PureBasic Team
- Posts: 2139
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: Feature request: "Insert as comment"
Yes, exactly.Kaeru Gaman wrote:you mean, when inserting more than one line from another text editor...?
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"
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.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...).
You are all programmers... be a little creative!

quidquid Latine dictum sit altum videtur
Re: Feature request: "Insert as comment"
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...
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.
- Michael Vogel
- Addict
- Posts: 2807
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: Feature request: "Insert as comment"
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:
Now I want to change the line to:
But when the first doublequote will have been entered, the "to" and "or" have already been changed to "To" and "Or"
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
Code: Select all
Message(s+" enter valid value: 3 to 5 or 7 to 11")
Code: Select all
Message("Oh no! "+s+" enter valid value: 3 to 5 or 7 to 11")

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