Add a new command to notepad++

孤街浪徒 提交于 2019-12-25 02:25:15

问题


Notepad++ is my go to editor for most things. I would like to develop a new command(keyboard shortcut) for doing something unique. Anybody has any pointers regarding how I can do this?

I would like to create a command which arranges selected text in certain order based on the characters found. I would also like create a keyboard shortcut for running the same command.


回答1:


You have several options:

  • develop a macro - examine Macros dropdown menu in Notepad++

  • use AutoHotKey which can send keystrokes/mouseclicks, run apps/DLL's, work with clipboard, read any system settings, take values from input boxes and many more. Please see here for its sample usage with Notepad++

  • use JN plugin for Notepad++ and script your functionality in JavaScript - example. Similarly, there is a Python scripting plugin, too.

  • write your own N++ plugin. You get the best control, but without experience this is the most difficult option.



来源:https://stackoverflow.com/questions/19992699/add-a-new-command-to-notepad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!