Note how lines are defined like so: #define IDM_LANG_HTML (IDM_LANG 5) To add other languages check the source file here for a list of menu IDs. The key part here is the wParam="46007" this is the menu item ID that refers to the JavaScript language menu item. To add an entry to switch to JavaScript, add these lines: In this XML file there is a section called that should look something like this (this one macro came predefined to my install): The standard location for this file is %AppData%\Notepad \shortcuts.xml. Unfortunately you cannot record this macro, but you can manually edit the file macros are saved to. You can create a macro to switch to a specific language and then set a keyboard shortcut via the built-in menu: Macro > Modify Shortcut/Delete Macro. All credit to this post on the Notepad forums. I found this thread first while seeking the answer I eventually found and I wish to share it here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |