Page 1 of 2
Block comment
Posted: Sat Feb 26, 2005 10:51 am
by eevee
In PureBasic.exe, highlighting a series of consecutive lines and pressing a character will replace the highlighted line with the single character pressed.
However if the character entered is a TAB the whole block is simply tabbed rather than replaced. Similarly pressing SHIFT-TAB tabs back removing the white spaces at the front of the lines.
It would be nice if a similar mechanism to the TAB one existed for quickly commenting out a block of lines. In other words pressing ; would insert the commenting semi-colon in front of all highlighted lines.
Posted: Sat Feb 26, 2005 11:02 am
by blueznl
japbe anyone?

Posted: Sat Feb 26, 2005 11:06 am
by freedimension
What's wrong with Ctrl-B and Alt-B?
Posted: Sat Feb 26, 2005 11:07 am
by blueznl
dunno
nothing i guess

Posted: Sat Feb 26, 2005 11:23 am
by eevee
I'm really not winning with PureBasic at the moment!
But ........
where on earth are the instructions for this flipping program?
The command list is great but that is what it is - a listing of functions.
Short of ploughing through other people's (such as yours Blueznl) documents there does not seem to be a unified resource.
OR am I wrong on this one also? :roll:
Do YOU mention commenting on your docs? :roll:
Posted: Sat Feb 26, 2005 12:05 pm
by freedimension
eevee wrote:Do YOU mention commenting on your docs? :roll:
Don't know, but it's always present in the editor's menu

Posted: Sat Feb 26, 2005 12:18 pm
by Gansta93
With JaPBe, it is possible to do
Code: Select all
;{
Comments line 1
comment line2
etc...
;}
If we would be able to do that with PureBasicEditor, it would be good.
Posted: Sat Feb 26, 2005 12:20 pm
by eevee
So it is .......
I think I am getting too old for this game!

Posted: Sat Feb 26, 2005 12:27 pm
by Gansta93
There are errores when I doit.
Posted: Sat Feb 26, 2005 12:36 pm
by GPI
Gansta93 wrote:With JaPBe, it is possible to do
Code: Select all
;{
Comments line 1
comment line2
etc...
;}
No, this doesn't command the lines! It make the lines foldable.
Posted: Sat Feb 26, 2005 12:38 pm
by blueznl
japbe
1. [shft] + [cursor down]
2. [ctrl] +
works fine for me...
Posted: Sat Feb 26, 2005 1:14 pm
by Gansta93
Yes. It works so with PureBasic editor. But it would quickly if we would be able to do something to comment lines like C or C++ (not same "/**/"), but another.
For example,
Code: Select all
;*Comments
Second line of comments
others...*;
it would be good... no restriction in the code, because of the ";" at first, and quick to comment lines without selection and shortcut.
Posted: Sat Feb 26, 2005 1:21 pm
by blueznl
oh i see
something like a compiiler directive...
$StartComment .. $EndComment
Posted: Sat Feb 26, 2005 1:28 pm
by Gansta93
blueznl wrote:oh i see
something like a compiiler directive...
$StartComment .. $EndComment
Your example is more explicit... it'd be good!

Posted: Sat Feb 26, 2005 2:36 pm
by GPI
Something like
Code: Select all
compilerif #false
this is ignored
compilerendif
?