U++ framework
Do not panic. Ask here before giving up.

Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » PATCH: Improve quick comment/uncomment
PATCH: Improve quick comment/uncomment [message #6903] Mon, 04 December 2006 06:43 Go to next message
aroman is currently offline  aroman
Messages: 18
Registered: November 2005
Promising Member
Attached is a patch to improve the 'enclosing' ability of the TheIDE.

With the attached patch, when a block of code is selected and the user hits '/', then the block of code is commented-out by prefixing each selected line with '//'.

If the same block is highlighted and '/' is hit again, then the block is uncommented.

Similarly, if the user hits '*', selected code will be commented out using /* ... */ and hitting '*' again will uncomment.

- Augusto
Re: PATCH: Improve quick comment/uncomment [message #6907 is a reply to message #6903] Mon, 04 December 2006 08:56 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Nice patch! However I got used to enclosing with /* */ after pressing / Wink Maybe that could be configurable.
Re: PATCH: Improve quick comment/uncomment [message #6935 is a reply to message #6907] Tue, 05 December 2006 13:17 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
unodgs wrote on Mon, 04 December 2006 02:56

Nice patch! However I got used to enclosing with /* */ after pressing / Wink Maybe that could be configurable.


Ok, Daniel, please add it with configuration option Wink

Mirek
Re: PATCH: Improve quick comment/uncomment [message #6938 is a reply to message #6935] Tue, 05 December 2006 13:32 Go to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Quote:

Ok, Daniel, please add it with configuration option

Sure!
Previous Topic: Finding DrawXPButton
Next Topic: Trailing spaces, upper/lower case etc.
Goto Forum:
  


Current Time: Sat Apr 25 17:19:12 GMT+2 2026

Total time taken to generate the page: 0.00636 seconds