Hello Jan.

Many thanks for the new version!

These two functions work fine: :)

[color=#009900]- Log window will mark "debug" line with green symbol
- Scripting - new function markEditorLine(integer)[/color]

I can't get these two functions to work: :-/

[color=#FF9900]- Scripting - new function pspadClosing()
- Scripting - new function reloadUserHighlighter(name: string)[/color]

Am I doing something wrong? I have tried many things, for example:

.
_*Function reloadUserHighlighter(name: string)*_

[color=#3399FF]  Dim obj[/color]

[color=#3399FF]  Set obj = NewEditor()
  obj.assignActiveEditor()
' obj.activate()
[/color]
[color=#3399FF]' obj.highlighter("AutoIt3")
  reloadUserHighlighter("AutoIt3")[/color] [color=#000000]' nothing happens.
:-([/color]
[color=#3399FF]' reloadUserHighlighter()
[/color]
For function pspadClosing() I opened an AutoIt3 script in PSPad with AutoIt3
Highlighter. Then in AutoIt3.ini I added a new codeword to section [KeyWords3]
and saved it. Then I pressed the shortcut for the VBScript code above, but
nothing happened. But when I restart PSPad, the new codeword is highlighted
correctly.


.
_*Function reloadUserHighlighter()*_

[color=#3399FF]  echo("Start")[/color]

[color=#3399FF]  Do
    If pspadClosing() Then Exit Do
    Sleep(10)
  Loop
[/color]
[color=#3399FF]  echo("End")[/color]

For function pspadClosing() I started the loop as in the code above, then I
tried to close PSPad, but the loop continued and 'echo("End")' did not appear.

Can you please show examples of how to do it right?

-- 
<https://forum.pspad.com/read.php?6,72029,72041>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem