• Login
Community
  • Login

Function parameters hint for custom functions

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 3.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    Grega Sever
    last edited by Grega Sever Jul 20, 2016, 11:05 AM Jul 20, 2016, 11:05 AM

    Hello

    I’m quite new to NPP and I use it mostly for editing PHP files. As I see PHP functions are integrated in NPP and I like “Function parameters hint” very much. I tried to find some help on this forum about creating same functionality for my own functions (I think adding my custom functions to php.xml is not a good idea). Thank you very much for an answer.

    1 Reply Last reply Reply Quote 0
    • J
      Jim Dailey
      last edited by Jul 20, 2016, 9:02 PM

      It is your own copy of php.xml, so why not edit it to add things you find useful?

      The only problem I see with that is you’ll have to be careful not to clobber your version of php.xml if and when you update NPP (don’t use the installer, or, if you do, copy your php.xml file somewhere first so you can restore your customizations after updating).

      I routinely generate a new (updated) c.xml file by parsing many local and open source UEFI header files that are part of my C source code, as well as a few “fixed” files containing keywords that I want to be able to autocomplete.

      One word of caution: if you edit the XML file, you must keep the entries in alphabetical order or keyword/function help may silently fail.

      1 Reply Last reply Reply Quote 0
      • G
        Grega Sever
        last edited by Jul 21, 2016, 6:15 AM

        Thank you!

        1 Reply Last reply Reply Quote 0
        2 out of 3
        • First post
          2/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors