Print Thread
Comment line function key works for one line only
#63342 02/17/22 05:11 PM
Joined: May 2007
Posts: 102
Tiel, The Netherlands
M
Member
OP Offline
Member
M
Joined: May 2007
Posts: 102
Tiel, The Netherlands
From the new features page I noticed the following:

A new function key “Comment/Uncomment Line” has been added, which is assigned to Ctrl+’-‘ by default. This function adds double hyphens to comment a line, or will remove them if already present.

This works perfectly for the line the cursor is on. but can you make it also work if multiple lines are selected?

Thank you.

Re: Comment line function key works for one line only
Marcel Hoefs #63346 02/18/22 04:16 AM
Joined: Feb 2003
Posts: 392
The Netherlands
Member
Offline
Member
Joined: Feb 2003
Posts: 392
The Netherlands
You can use my commentlines plugin ;-)
https://plugins.bar-solutions.com

Re: Comment line function key works for one line only
patch #63350 02/18/22 08:00 AM
Joined: May 2007
Posts: 102
Tiel, The Netherlands
M
Member
OP Offline
Member
M
Joined: May 2007
Posts: 102
Tiel, The Netherlands
I did in version 14 and because I saw this new feature I thought that this excellent functionality is now standard in version 15, as has happened to many popular plugins.

If this new feature is meant to work for one line only then of course I will continue to use your excellent plugin!

Re: Comment line function key works for one line only
Marcel Hoefs #63352 02/18/22 09:48 AM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
We'll enhance this for multiple selected lines.


Marco Kalter
Allround Automations
Re: Comment line function key works for one line only
Marco Kalter #63471 02/25/22 12:53 PM
Joined: May 2007
Posts: 102
Tiel, The Netherlands
M
Member
OP Offline
Member
M
Joined: May 2007
Posts: 102
Tiel, The Netherlands
Works now as expected for single and multiple lines in beta 5.


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.036s Queries: 14 (0.013s) Memory: 2.5160 MB (Peak: 3.0427 MB) Data Comp: Off Server Time: 2024-05-18 18:04:54 UTC
Valid HTML 5 and Valid CSS