todo script is a js one, and I prefer using VB ones, I know more of VB than js.

But I near found out how to do this :

  Set editor = newEditor()
  editor.assignActiveEditor
  s = editor.Text
  s = Replace(s,"texttoreplace","replacementtext")
  setClipboardText(s)

Now I have to figure out how to replace the editor text by the "s" variable
instead of just putting it in the clipboard :)

-- 
<http://forum.pspad.com/read.php?2,43400,43448>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem