Re: Commenting several lines
Benno Schulenberg <[email protected]> Fri, 21 Jan 2022 12:46:55 +0100
| Newsgroups | gmane.editors.nano.general |
|---|---|
| Message-ID | <[email protected]> |
Op 21-01-2022 om 07:31 schreef Seb: > I was probably influenced by Tab, which works both on lines and on selected > blocks. I'm not sure this behaviour should be extended to commenting (ie making # > or % act like M-3 if a block is selected), but perhaps it's worth a thought. Hmm, no. Tab is an edge case: it is not a normal, printable character but a control code, so it is kind of okay that it behaves differently when a block of text is selected. But to make normal characters behave specially... Also, if # or % would behave specially, then why not // and -- and who knows what other character combinations are used for commenting. The beauty of M-3 is that (when using syntaxes) it will insert/remove the character or character combination that is appropriate for the type of file you're editing. Benno
OpenPGP_signature
(application/pgp-signature, 840 B) - not displayed