Is there a way to comment several lines of code using / * xxxx * / as in C language? If that can be added for me would be helpful.
At the moment, the only way is either manually adding // or highlighting a block and selecting Edit -> Toggle Block Comment
This is how you can fix an entire document:
On the menu bar at top of the IDE:
click "edit", and "select all", then click edit once more and click "replace"
A window will open for replacing words...
In the top edit box, type "/*"
In the bottom edit, type "//"
And finally click the button that says "Replace".
Your entire document will have all the "/*" entries replaced with "//"
Or you can highlight your block of text and use CTR+K. This acts as a toggle too.
Quote from: Ian Price on 2011-Jan-31
Or you can highlight your block of text and use CTR+K. This acts as a toggle too.
Perfect! :nw:
Quote from: msx on 2011-Jan-31
Quote from: Ian Price on 2011-Jan-31
Or you can highlight your block of text and use CTR+K. This acts as a toggle too.
Perfect! :nw:
Perfect! :nw:
Quote from: Ian Price on 2011-Jan-31
Or you can highlight your block of text and use CTR+K. This acts as a toggle too.
Just make sure the top line that you comment out in the block isn't already commented out otherwise it screws up.
There is also this useful way: use the pre-processor.
?IFDEF TESTING_CONDITION // or silly name
//Plenty of dodgy code
// that you don't want.
?ENDIF
To enable the code, write at the very top:
?DEFINE TESTING_CONDITION
Like this it's easy to switch from old to new version of a snippet, and vice-versa:
?IFDEF NEWVERSION
//new code here.
?ELSE
//old code here
?ENDIF
CTRL+K I think it's better then /* and */ in C++ this it's really quick select a lof of lines and press the command...
Quote from: spicypixel on 2013-Mar-29
Just make sure the top line that you comment out in the block isn't already commented out otherwise it screws up.
Ah, so that's it. That has been annoying me. I still think adding /**/ would be a good idea though, for those of us working without the GLBasic IDE sometimes.
/* blablabla */
i like the idea!
Pls post a request!
I do
?IF 0
...
?ENDIF
Sent from my GT-N7100 using Tapatalk
/*
*/
Is perfect for the PHP guys amongst us :D +1 for meee.
+1