Search found 536 matches

by pjj
16 Apr 2014 11:47
Forum: Scripts
Topic: Help with script
Replies: 6
Views: 18648

Re: Help with script

OK, since you need a script, here's one for you; enjoy! // JScript // turn off screen updating Document.BeginUpdate(); // turn word-wrap off if (Document.Wordwrap) { Document.Wordwrap = false; } // remove leading spaces for (var i = 0; i < Document.LineCount; i++) { Document.Lines[i] = ScriptUtils.R...
by pjj
16 Apr 2014 09:12
Forum: Scripts
Topic: Help with script
Replies: 6
Views: 18648

Re: Help with script

Do you need a script for this (to be able to run it e.g. on each file open or save), or do you need it just one time? Because if the latter, you can simply select all text (Ctrl-A) and hit Shift-Tab a couple of times.
by pjj
04 Feb 2014 16:39
Forum: Scripts
Topic: How to terminate a script with a keyboard?
Replies: 3
Views: 14735

Re: How to terminate a script with a keyboard?

Image

Any chance you look into it someday soon? I could really, really use it, you know. Perhaps other people could, too ;)
by pjj
01 Jan 2014 17:03
Forum: News
Topic: Merry Christmas
Replies: 1
Views: 13228

Re: Merry Christmas

Merry Christmas -- they still last! -- and all the best in the New Year, guys!
Image
by pjj
11 Dec 2013 06:44
Forum: Scripts
Topic: Need a few examples, please
Replies: 8
Views: 21052

Re: Need a few examples, please

var temp = "12/10/2013 21:39 HOURS (ET) USA"; var find = ""; x = ScriptUtils.RegExPos(":\\d{2}", temp, find); ShowMessage(x); ShowMessage(find); It finds this pattern: colon, followed by two digits; then you have to strip off colon, of course. -- I hope this is what yo...
by pjj
10 Dec 2013 17:02
Forum: Scripts
Topic: Need a few examples, please
Replies: 8
Views: 21052

Re: Need a few examples, please

I'm glad I could help! :)
by pjj
23 Nov 2013 21:08
Forum: News
Topic: Next version ...
Replies: 1
Views: 12556

Re: Next version ...

Image
by pjj
16 Nov 2013 08:11
Forum: Scripts
Topic: textbox control?
Replies: 1
Views: 11141

Re: textbox control?

You can use TEdit() (one line input box) or TMemo() (mulitline).
by pjj
07 Nov 2013 12:08
Forum: Scripts
Topic: Need a few examples, please
Replies: 8
Views: 21052

Re: Need a few examples, please

Here you are, re-using code from the first example (ad 2): var needle = "erase this"; var d[1000]; // variable to store document text w/o lines containing needle var j = 0; // counter for d var upto = Document.LineCount; // no. of lines in original document text var x; // turn off screen u...
by pjj
07 Nov 2013 10:42
Forum: Scripts
Topic: Need a few examples, please
Replies: 8
Views: 21052

Re: Need a few examples, please

Here you are (ad 1): var s; // variable to store line of text // turn off screen updating Document.BeginUpdate(); // turn word-wrap off if (Document.Wordwrap) { Document.Wordwrap = false; } // loop thru lines for (var i = 0; i < Document.LineCount; i++) { s = Document.Lines[i]; // do something with ...
by pjj
06 Oct 2013 17:48
Forum: Scripts
Topic: Script with regex worked in RJ TextEd 8.65 but fails in 8.70
Replies: 3
Views: 14450

Re: Script with regex worked in RJ TextEd 8.65 but fails in

dustwalker wrote:I have replaced it by your own line, however, because your line is neater.
Thanks! :) I'm glad I could help.
dustwalker wrote:Note: I replaced your line's double quotes by single quotes, because my script syntax is Pascal.
I know ;)
by pjj
06 Oct 2013 14:50
Forum: Scripts
Topic: How to terminate a script with a keyboard?
Replies: 3
Views: 14735

Re: How to terminate a script with a keyboard?

And no, "Exit Script (Shift+Esc)" doesn't work for me. Here's a somewhat contrived sample of situation when you'd need it: function hideForm() { d.hide; // d.ModalResult = mrOk; } d = new TForm(nil); d.Caption = "Prepare to kill RJ TE"; d.BorderStyle = bsDialog; d.Position = poSc...
by pjj
06 Oct 2013 12:23
Forum: Scripts
Topic: Script with regex worked in RJ TextEd 8.65 but fails in 8.70
Replies: 3
Views: 14450

Re: Script with regex worked in RJ TextEd 8.65 but fails in

Without any "activation through search" this works for me on the newest version of RJ TE: Document.ReplaceAll("[\r\n]{3,}", "\r\n\r\n", false, false, true, true); and, should you prefer to be a tad more verbose, this: var s; s = Document.Text; s = ScriptUtils.WRegexRepl...
by pjj
30 Sep 2013 17:46
Forum: Scripts
Topic: How to terminate a script with a keyboard?
Replies: 3
Views: 14735

Re: How to terminate a script with a keyboard?

Image

I just run into one of these cases, hiding the main form :roll: so no way to close the app window other then killing RJ TE :roll: So, is it possible?
by pjj
30 Sep 2013 17:37
Forum: News
Topic: Polish dictionary
Replies: 1
Views: 12300

Re: Polish dictionary

Piękne dzięki! :)