You are here: PSPad forum > Developer forum - new builds > PSPad unicode 5.0.7 (655) English

PSPad unicode 5.0.7 (655) English

Goto Page: Previous1 2 3 4 Next

#21 Re: PSPad unicode 5.0.7 (655) English

Posted by: MadCompie | Date: 2021-06-24 15:43 | IP: IP Logged

Yet another issue, not sure if it is related to this version.
I use some VBScript to append some extra text to the selected text.


text = editor.selText()
'split the selected text into lines
lines = Split(text, EOL)
'... append new text per line...
'...
'combine the lines again into text
text = Join(lines, EOL)
editor.selText text

I timed each step, everything works speedy except the last statement: selText

For some 3000 (simple) lines the selText method took about 1 minute which is very slow compared to all other actions (lees than a second)...

Options: Reply | Quote | Up ^


#22 Re: PSPad unicode 5.0.7 (655) English

Posted by: pspad | Date: 2021-06-24 16:50 | IP: IP Logged

Shouldnt it be:

editor.selText(text)

Options: Reply | Quote | Up ^


#23 Re: PSPad unicode 5.0.7 (655) English

Posted by: Greg | Date: 2021-06-24 21:36 | IP: IP Logged

Hellow,

I've seen a bug related to the TextDiff Drag and Drop feature : the Drag and Drog Target does not appears unless i drag into the left panel.

Here it doesn't appears :

image

There it does appears but just to open the new file and not to make TextDiff with the one already opened :

image

Options: Reply | Quote | Up ^


#24 Re: PSPad unicode 5.0.7 (655) English

Posted by: pspad | Date: 2021-06-25 05:16 | IP: IP Logged

Drag file to the right top corner, little above the editor

Options: Reply | Quote | Up ^


#25 Re: PSPad unicode 5.0.7 (655) English

Posted by: MadCompie | Date: 2021-06-25 06:35 | IP: IP Logged

pspad:
Shouldnt it be:

editor.selText(text)

Not for VBScript, parenthesis only for functions (returns) not for procedures (void)

The selText works but is very very slow using >500 lines...

Options: Reply | Quote | Up ^


#26 Re: PSPad unicode 5.0.7 (655) English

Posted by: pspad | Date: 2021-06-25 07:09 | IP: IP Logged

Empty parenthenses means return value, parameter inside parenthenses means parameter send to procedure. Try it.

Options: Reply | Quote | Up ^


#27 Re: PSPad unicode 5.0.7 (655) English

Posted by: bluezero | Date: 2021-06-25 13:49 | IP: IP Logged

image

Cant send you a report by email, because the top error window reopens, so i have to kill the process.
But it happened on switching tabs.

Options: Reply | Quote | Up ^


#28 Re: PSPad unicode 5.0.7 (655) English

Posted by: pspad | Date: 2021-06-25 14:30 | IP: IP Logged

MadCompie:
Yet another issue, not sure if it is related to this version.
I use some VBScript to append some extra text to the selected text.


text = editor.selText()
'split the selected text into lines
lines = Split(text, EOL)
'... append new text per line...
'...
'combine the lines again into text
text = Join(lines, EOL)
editor.selText text

I timed each step, everything works speedy except the last statement: selText

For some 3000 (simple) lines the selText method took about 1 minute which is very slow compared to all other actions (lees than a second)...

Can you send me your script with some text example to support mail?

Options: Reply | Quote | Up ^


#29 Re: PSPad unicode 5.0.7 (655) English

Posted by: bluezero | Date: 2021-06-25 15:53 | IP: IP Logged

I have opened a minified javascript which's filesize is about 1MB, it took about 1 minute to load.
The whole code is in one line.

Options: Reply | Quote | Up ^


#30 Re: PSPad unicode 5.0.7 (655) English

Posted by: pspad | Date: 2021-06-25 16:14 | IP: IP Logged

bluezero:
I have opened a minified javascript which's filesize is about 1MB, it took about 1 minute to load.
The whole code is in one line.

This is exactly the reason why it took so long. It's problem in design editor component - extremelly long lines.

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3 4 Next





Editor PSPad - freeware editor, © 2001 - 2021 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR