How do I configu开发者_开发百科re an EditPlus user tool (Preferences dialog box) to execute a vbs script that simply pastes a "Hello World" string to an open file? I use editPlus version 3.30/
EditPlus text editor: How to create a script that will paste a string. The script can serve as a user toolbar item to paste custom code snippets.
Configure the Preference/Tools dialog like this:
Command:
Cscript.exe "$(AppDir)\filters\Pastetext.js"
Argument: //NoLogo $(CurRow)
leave initial directory blank
Action:
Run as text (Insert)
Save Option: Select "Current file"
Save the following line as Pastetext.js in the appropriate directory
`WScript.echo("Hello World");`
The string will print where your cursor is in an open document.
精彩评论