这2个都是很好的文本编辑工具.
notepad++调用命令行,在菜单的"运行".
ultraEdit则是在菜单"高级"->"工具配置".
notepad++的命令行中,使用宏的方法为:"$(宏名)"
常用的有:
FULL_CURRENT_PATH the fully qualified path to the current document. CURRENT_DIRECTORY The directory the current document resides in. FILE_NAME The filename of the document, without the directory. NAME_PART The filename without the extension. EXT_PART The extension of the current document. NPP_DIRECTORY The directory that contains the notepad++.exe executable that is currently running.
使用举例:
cmd /k python "$(FULL_CURRENT_PATH)" & ECHO. & PAUSE & EXIT
至于ultraEdit,常用的宏则是:
%F:完整文件路径+文件名
%P:仅路径
%N:仅文件名
%E:仅扩展名
无可否认ultraEdit功能更强.
但只需要简单功能的,还是推荐小巧的notepad++,还是免费开源.
来源:oschina
链接:https://my.oschina.net/u/3223803/blog/1932647