Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » Toggle Block Comment macros
Toggle Block Comment macros [message #10006] |
Wed, 13 June 2007 13:54  |
obijohn
Messages: 11 Registered: May 2007
|
Promising Member |
|
|
EDIT: As noted in the second post below, the patch for these features actually had been included (I just didn't know where to look). So I have removed the macros from the original post and replaced them with just one, which I think might still be useful. It will uncomment a block without having to select it first.
Uncomment Block: Place the cursor anywhere in a comment block (which is delimited by /* ... */), and press ALT+* to uncomment it.
/*
Macro for uncommenting a comment block
Author: John Stoneham (no copyright claimed -- do whatever you want
with this code)
Date: June 13, 2007
*/
macro "Comment":"Uncomment Block" Alt+Shift+8
{
curr = GetCursor();
if(Find("*/"))
{
end = GetCursor() - 4;
if(Find("/*", 0))
{
start = GetCursor() - 2;
if(start < curr)
{
ClearSelection();
SetCursor(start);
Remove(2);
SetCursor(end);
Remove(2);
}
}
}
}
[Updated on: Wed, 13 June 2007 16:08] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 27 10:23:06 CEST 2025
Total time taken to generate the page: 0.03611 seconds
|