[Geany-devel] Feature request: Comment selection

Ross McKay rosko at xxxxx
Wed Mar 23 23:16:15 UTC 2011


Harold Aling wrote:

>True, but that's not my point.
>
>Another example:
>
><div class="hardcoded-class <?php print $extra_class; ?>"></div>
>
>...and I want to comment out "print $extra_class;"...
>
>-or-
>
>$var = $var1 + $var2 / 10;
>
>...and I want to comment out "/ 10"
>
>
>There are numerous examples where "comment selection" could be handy, IMHO.

Fair enough. But I'd prefer context-sensitive commenting before that :)

i.e. when you have a script that is a mix of script types (HTML, CSS,
PHP or VBScript, JavaScript) it would be nice if comments worked on the
appropriate language for the selected block. 

Right now, if you have an ASP and the mode is HTML, any CSS, JavaScript,
or VBScript you try to comment out gets <!-- and -->

And similarly, HEREDOC HTML you have in PHP gets /* and */

I don't know how to solve that one, and have yet to peek at the codez
for it. But I reckon it is a bigger problem.
-- 
Ross McKay, Toronto, NSW Australia
"Nobody ever rioted for austerity" - George Monbiot



More information about the Devel mailing list