Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » Toggle Block Comment macros
Toggle Block Comment macros [message #10006] Wed, 13 June 2007 13:54 Go to previous message
obijohn is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Export to PDF more than 1 page?
Next Topic: more key shortcuts
Goto Forum:
  


Current Time: Wed Apr 17 00:49:48 CEST 2024

Total time taken to generate the page: 0.01425 seconds