![]() ![]() It appears that, with the introduction of two-button Find mode (back around version 7.5.0-ish), two new but totally unneeded (and indeed, confusing) new macro value commands (17) we introduced. The solution is, as Guy said, to change the 1723 to 1. Some hours later, I also confirm that my new syntax works nice with Notepad++ v7.8.4 and commit to the source code made it into version 7.8.5.ĭoing some research on it, it appears that Stefan’s macro must have been recorded using the two-button Find mode’s “downward Find Next” button. However, I confirm that your initial macro, although not correct in some points, does work, when using Notepad++ v7.8.4. I realized my tests with the last v7.8.5 release. Therefore, assuming that you deleted the default N++ shortcut Alt + H, there is, below, a correct macro code, which finds the next occurrence of the string `~Marker`-Heading~`, when using the Alt + H shortcut : symbol matches a single standard character and not any EOL char Note that I added the (?-s) part, which forces the regex engine to consider that any dot. Now, regarding the search regex, the parentheses, to define groups, seem useless as no replacement regex occurs and not-used in the search regex either ! So, its syntax could be changed as below : However, thanks to you, I’ve learned something new, today -)) We already know that XML comments, as are not kept at end of the tags lines.īut your special syntax seems to be kept, at any location, inside a section of the shortcuts.xml configuration file ![]() Here is a summary of all the tags, of type = 3, which define a search/replace operation, in the section of shortcuts.xml ![]() Thirdly, the wParam attribute ( 1723 ), of tag, with message = 1701 is not a valid command number ! I suppose that its value should be 1, corresponding to a Find Next command Secondly, you have two tags, with message 1700, which is used to initialize a search/replace operation ! Normally, this shortcut is the default one, used by Notepad++, for hiding current or selected line(s) ( View > Hide lines menu option ) Stefan, really strange, your macro example !įirst, you’re using the Alt + H shortcut for this macro. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |