- Posted by
- Here is one way to do it. It only handles up to 10 inserted lines at a time, but you could add more if you needed it. InsertMode ColumnModeOff HexOff UnixReOn NewFile Clipboard 9 GetValue "How many lines do you want? " SelectWord Cut Top "1 2 3 4 5 6 7 8 9 10 " Top Find Select "^c" IfNotFound CloseF...Posted in Macros
-   Topics
-   Views
- ASTTMan
Aug 24, 2005
- First, create a tool under Advanced | Tool Configuration. On the dialog, enter the following: Command Line: %N%E Working Directory: %P Menu Item Name: Run Perl Script Check "Save Active File" and "Capture Output". Select "Output to List Box". Be sure to hit the Insert button to insert your selection...Posted in Custom User Tools/Tool Configuration
-   Topics
-   Views
- ASTTMan
Jul 12, 2005
- John, Some interesting solutions. I think I can take elements from each and give you what you want: InsertMode ColumnModeOff HexOff UnixReOn Top Loop IfEof ExitLoop EndIf IfCharIs "P" SelectWord Copy Else Key LEFT ARROW Find RegExp "^" Replace "^c^t" EndIf Key HOME Key DOWN ARROW EndLoop Note that I...Posted in Macros
-   Topics
-   Views
- ASTTMan
Jul 08, 2005
- Jasgot, I think you can do it this way as well: InsertMode ColumnModeOff HexOff UnixReOn Bottom IfColNum 1 Else " " EndIf Top Loop IfEof ExitLoop EndIf SelectLine Copy Key HOME NewFile Paste Top Find RegExp "^(.*rowBegins=)(\d+)(.*)$" Replace "\1\2\3\n\2.txt" StartSelect Key HOME EndSelect Cut Key D...Posted in Macros
-   Topics
-   Views
- ASTTMan
Jun 22, 2005
- mvgils: I don't think UE supports the {} REs. I would try something like this: \d\d\d\d\s*[a-zA-Z][a-zA-Z] Note that I am using unix style REs (there is a setting on Advanced | Configuration | Find) and that any number of spaces would be found between the numbers and the letters. UE also doesn't sup...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- ASTTMan
Jun 02, 2005
- I believe this is caused by one matching string overlapping the other. For example, the second quote was matched by the string /y" /, and the third quote presumably by / "B/. But the same space is in both (supposedly) matching strings. I believe that UE skips the matched string before searching for ...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- ASTTMan
May 24, 2005
- chadrey, Oh, I see what you mean. I'm afraid I don't know any way to do exactly what you ask. Now, what you want to do with this find may affect how you proceed. For example, if you want to do a replace, or even extract the found items, you could do it with one more step. If you wanted to replace th...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- ASTTMan
May 19, 2005
- chadrey, You threw me off in the description ("between 2 strings"), but I think the example using characters can be done. Just search for the following: (I use Unix style RE) \[[^\[,]*, This says search for the literal "[" character, followed by any number of characters that are not a left bracket o...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- ASTTMan
May 19, 2005
- Great work! I have a couple of comments/suggestions: 1. Delimiters - I don't think so many spaces make any difference as long as there is one space. I had to add <tab>, but that may be due to cut-paste. 2. If you have "or" as an indent string, why not "and"? 3. I suggest you remove pragma from keywo...Posted in Syntax Highlighting
-   Topics
-   Views
- ASTTMan
Apr 25, 2005
- Rob, Yes, we're talking about the same thing, it just seems there has been a change in v11. I'm using v10.00b. I don't have a Project Tab, but I have a combo box at the top of the file tree window that lets me select Open Files, Project Files, or lets me browse a disk drive. When I right click in th...Posted in UltraEdit General Discussion
-   Topics
-   Views
- ASTTMan
Apr 21, 2005
- Rob, I'm only seeing a popup showing the full name of a file, and then only if the window is too narrow for the full name. If that's your problem, then you have three choices: 1. Make the window wider. This may not be practical if the full path is a long one. 2. Right click in the project window and...Posted in UltraEdit General Discussion
-   Topics
-   Views
- ASTTMan
Apr 20, 2005
- Well I don't know if I'd call myself an expert, but I think you could do this: Find each table definition, copy it to a new file, run your macro on it, then copy it back. Here's a macro that seems to work: InsertMode ColumnModeOff HexOff UnixReOff Clipboard 9 Top Loop Find "<table" IfNotFound ExitLo...Posted in Macros
-   Topics
-   Views
- ASTTMan
Apr 15, 2005
- As far as I can tell, UE doesn't support the {min,max} RE format, so there is no easy way to do this. You could, of course, do a find with RE "^...<133 dots>....+", but that's a pain. (It would really have to be 133 dots in a row!) You could do it in a macro with something like this: InsertMode Colu...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- ASTTMan
Apr 13, 2005
- You could try this macro: InsertMode ColumnModeOff HexOff UnixReOn Top Loop ToggleBookmark SelectWord Copy EndSelect Find "^c" IfFound DeleteLine GotoBookMark ToggleBookmark Else GotoBookMark ToggleBookmark Key DOWN ARROW Key HOME EndIf IfEof ExitLoop EndIf EndLoop This assumes a couple of things. F...Posted in Macros
-   Topics
-   Views
- ASTTMan
Apr 04, 2005
- I'm not sure. The only thing I can think of is that if you're doing an RE search, you wouldn't want the Find Next/Prev to change the search to the last thing it found (highlighted text), you want it to continue using the RE. UE probably can't tell that you're finished with the RE search and now real...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- ASTTMan
Mar 30, 2005