Re: [code] [textadept] Toggle Block Comment

From: A.M. Genaev <genaev.att.nioch.nsc.ru>
Date: Wed, 4 Sep 2013 17:35:35 +0700

Hi Robert,

> > How may i to change behaviour of Ctrl+/ to comment commented lines
> > additionally? And to add some key (for example Ctrl+Shift+/) to uncomment
> > block?
>
> in the block_comment function in 'editing.lua' is an if block where the
> first removes comments and the else block adds a comment prefix/suffix
> if none exists. You could take this function as a starting point,
> turning it into two functions that have only one of these options.

Thank you for idea.

My init.lua became twice more by size but I made as wanted. :)

Regards,
Alexander

-- 
A.M. Genaev <genaev.att.nioch.nsc.ru>
-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 04 Sep 2013 - 06:35:35 EDT

This archive was generated by hypermail 2.2.0 : Wed 04 Sep 2013 - 06:47:57 EDT