- Posted by
- I've written a script that searches through a file, conditionally pulls specific information from certain lines, re-arranges the data, and then appends the processed text to a new document. Normally I would have written a .Net console app to do this, but I was excited to try UE's new scripting. Unfo...Posted in Scripts
-   Topics
-   Views
- Skwerm
Apr 19, 2007
- var rexCodeTypes = "s.*e"; UltraEdit.document[0].top(); UltraEdit.document[0].findReplace.regExp = true; UltraEdit.document[0].findReplace.find(rexCodeTypes); In your example it only finds an e because you forgot a . before the * See my var above. rds Bego I'm using UE's Legacy RE's, not Unix. My o...Posted in Scripts
-   Topics
-   Views
- Skwerm
Apr 13, 2007
- Will the following one-line script crash anyone else's UE32 (v13.00a) besides mine? I've even tried other document indexes (besides 1) and I crash out with a dump every time. UltraEdit.document[1].setActive(); I'm seriously thinking of going back to macros. :?Posted in Scripts
-   Topics
-   Views
- Skwerm
Apr 13, 2007
- Well, now things are worse... I checked for UE32 updates and found that I had missed the 13.0a that was released yesterday. So I was only one update behind, but thought doing the update might fix the scripting error. Man, was I wrong! Now not only does my script not work, it crashes UE and creates a...Posted in Scripts
-   Topics
-   Views
- Skwerm
Apr 13, 2007
- I'm trying to set a variable to a regular expression and then use that variable in a findReplace. I just can't get it to work, even with a simple expression. The following script should find the word "software" but it just finds the trailing 'e'. // Set UE Application Objects UltraEdit.ueReOn; // Us...Posted in Scripts
-   Topics
-   Views
- Skwerm
Apr 13, 2007
- Thanks, Mofi! I actually managed to figure that out before I read your post, but I wanted to thank you just the same. I still think there's something wrong with the Find Select method I was using before, but since this other method does the trick I won't worry about it. Cheers!!Posted in Macros
-   Topics
-   Views
- Skwerm
Nov 09, 2006
- I have a text file report that is generated by some engineering software that I'm trying to insert page-breaks into at certain locations. That part is working fine, but I want to add the header (which the engineering software adds to the top of the file only) right after each new page break. The hea...Posted in Macros
-   Topics
-   Views
- Skwerm
Nov 08, 2006
- Can anyone tell me how to use mrainey56's reverse sort order macro on just selected lines? I have a situation where I need to reverse the order of just a portion of a file and haven't been able to have the macro operate on just a selected set of lines. Thanks!Posted in Macros
-   Topics
-   Views
- Skwerm
Jun 08, 2006
- Beautiful! That does the trick. Thanks, Mofi!Posted in Editor Display
-   Topics
-   Views
- Skwerm
Oct 06, 2005
- Is the Window > Next/Previous File Tab supposed to work when in Full Screen mode? I tend to work in Full Screen mode almost all the time and the only way I've found to be able to flip quickly between open files is by showing the File Tree view (Ctrl-U), which obviously takes up screen space I was tr...Posted in Editor Display
-   Topics
-   Views
- Skwerm
Oct 05, 2005
- I'm writing code in a language that uses old C style comments (/* ... */). I have my Block Comment On/Off defined and the highlighting works fine. But my Edit > Comment Add/Remove menu selections are grayed out. I'd like to be able to highlight a multi-line code block and have UE comment the lines o...Posted in Syntax Highlighting
-   Topics
-   Views
- Skwerm
Aug 09, 2005
- Somehow the +'s in front of the lines where code blocks started have dissapeared. Does anybody know how I re-enable code collapsing?Posted in Configuration/INI Settings
-   Topics
-   Views
- Skwerm
Jun 02, 2005