简体   繁体   English

为EditPlus用户工具配置VBS“ Hello World”脚本

[英]Configure vbs “hello world” script for EditPlus user tool

How do I configure an EditPlus user tool (Preferences dialog box) to execute a vbs script that simply pastes a "Hello World" string to an open file? 如何配置EditPlus用户工具(“首选项”对话框)以执行仅将“ Hello World”字符串粘贴到打开文件的vbs脚本? I use editPlus version 3.30/ 我使用editPlus版本3.30 /

EditPlus text editor: How to create a script that will paste a string. EditPlus文本编辑器:如何创建将粘贴字符串的脚本。 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) 参数: //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 将以下行另存为Pastetext.js在适当的目录中

`WScript.echo("Hello World");`

The string will print where your cursor is in an open document. 该字符串将在您的光标在打开的文档中的位置打印。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM