-
Notifications
You must be signed in to change notification settings - Fork 68
Description
In intro.html there is very prominent some quite probably outdated content:
In the first code box line 2 to 4 are:
editor.pyreplace(r"^Code: ([A-Z]{4,8})", r"The code is \1")
notepad.runMenuCommand("TextFX Tools", "Delete Blank Lines")But apparently in line 2 it should be editor.rereplace, and line 4 does not work, because there is no menu with the name “TextFX Tools” and direct command (anymore). It seems TextFX Tools has been restructured with submenus. The menu is “TextFX” and “Delete Blank Lines“ is in a submenu “TextFX Edit”.
Which leads to the question, how to use these submenu commands of a addon/plugin in PythonScript. (If you insist I could ask this as separate issue.)
Edit: Arrgh, searching for another thing I just now noticed that in notepad.html there is an example in section for notepad.runMenuCommand which has it (probably) right
notepad.runMenuCommand('TextFX Edit', 'Delete Blank Lines')So, the only improvement could be to add a note that menu in these PythonScript menu commands could itself be a submenu.