Menu

TextFX / WebEdit functions in context menu?

hujhax
2009-01-13
2012-11-14
  • hujhax

    hujhax - 2009-01-13

    Any advice on how to get TextFX or WebEdit functions into the context menu?

    I tried this, and it did not work:

    <NotepadPlus>
        <ScintillaContextMenu>
            <Item MenuEntryName="TextFX" MenuItemName="Wrap"/>
            <Item PluginEntryName="WebEdit" pluginCommandItemName="Italics"/>
        </ScintillaContextMenu>
    </NotepadPlus>

        =-p-=

     
    • hujhax

      hujhax - 2009-01-14

      Er... make that "Unwrap Text", not "Wrap".  Anyway, it still doesn't work.

       
    • Harry

      Harry - 2009-01-14

      Change MenuEntryName into PluginEntryName and then find the correct name in the Shortcutmapper (the shortcutmapper name is the real name to use, textfx performs some magic inside the menu)

       
      • hujhax

        hujhax - 2009-01-20

        Thanks!

        I tried out your advice, and switched my contextMenu.xml file to the following:

        <NotepadPlus>
            <ScintillaContextMenu>
            <Item PluginEntryName="TextFX" pluginCommandItemName="E:Rewrap Text to (Clipboard or 72) width"/>
            <Item PluginEntryName="WebEdit" pluginCommandItemName="WebEdit - Italics"/> 
            </ScintillaContextMenu>
        </NotepadPlus>

        Now it looks like I'm halfway there -- the WebEdit item shows up correctly, but I still can't get the TextFX plugin to show up.  I assume I'm still doing something wrong?

         
    • Harry

      Harry - 2009-01-21

      Yeah TextFX is quite the nasty plugin when it comes to the menu :)
      After some quick debugging, I found it has to be
      PluginEntryName="TextFX Characters"
      so try that, it should work (but it doesnt look very nice though)

       
      • hujhax

        hujhax - 2009-01-21

        Hooray!  That worked.  Thanks very much.

        Now to put in a feature request for setting the visible name of a context-menu item....