Block comment
Block comment
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.
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.
Regards,
Ernest
Ernest
japbe anyone? 

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
dunno 
nothing i guess

nothing i guess

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
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:

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:
Regards,
Ernest
Ernest
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
With JaPBe, it is possible to do
If we would be able to do that with PureBasicEditor, it would be good.
Code: Select all
;{
Comments line 1
comment line2
etc...
;}
No, this doesn't command the lines! It make the lines foldable.Gansta93 wrote:With JaPBe, it is possible to doCode: Select all
;{ Comments line 1 comment line2 etc... ;}
japbe
1. [shft] + [cursor down]
2. [ctrl] +
works fine for me...
1. [shft] + [cursor down]
2. [ctrl] +
works fine for me...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
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, it would be good... no restriction in the code, because of the ";" at first, and quick to comment lines without selection and shortcut.
For example,
Code: Select all
;*Comments
Second line of comments
others...*;
oh i see
something like a compiiler directive...
$StartComment .. $EndComment
something like a compiiler directive...
$StartComment .. $EndComment
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Something like
?
Code: Select all
compilerif #false
this is ignored
compilerendif