Editor: Turn highlighted code block into comments Feature

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Editor: Turn highlighted code block into comments Feature

Postby Michael Mooney » Wed May 16, 2007 10:11 pm

Sometimes I move a block of code into a method and need to do some work on it later. It would be handy to be able to automatically comment (and uncomment it out)


1) Add the comment string and a space (ie - //_) to the highlighted code block

2) Reverse step 1) with a remove-comment command (ie - remove any //_ found in the first 3 columns of the line)

Right mouse invoked preferably (e.g. - Comment-Block; UnComment-Block)

Thanks,

Michael
Michael Mooney
 
Posts: 269
Joined: Thu Apr 12, 2007 2:26 am
Location: Canada

Postby bcusick » Wed May 23, 2007 6:39 pm

For the time-being you can use the "C style" comment block:

Code: Select all
/*
this
code
is
now
commented
*/


I also use it this way personally:

Code: Select all
/************************
TODO: Fix this stuff below:
************************
this
code
is
now
commented
************************/
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 32 guests

cron