You are here: PSPad forum > Developer forum - new builds > PSPad unicode 5.0.7 (655) English
Goto Page: Previous1 2 3 4 Next
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)...
Posted by: pspad | Date: 2021-06-24 16:50 | IP: IP Logged
Shouldnt it be:
editor.selText(text)
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 :
There it does appears but just to open the new file and not to make TextDiff with the one already opened :
Posted by: pspad | Date: 2021-06-25 05:16 | IP: IP Logged
Drag file to the right top corner, little above the editor
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...
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.
Posted by: bluezero | Date: 2021-06-25 13:49 | IP: IP Logged
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.
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 textI 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?
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.
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.
Editor PSPad - freeware editor, © 2001 - 2023 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR