Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Function parameters hint for custom functions

    Help wanted · · · – – – · · ·
    2
    3
    3148
    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.
    • Grega Sever
      Grega Sever last edited by Grega Sever

      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
      • Jim Dailey
        Jim Dailey last edited by

        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
        • Grega Sever
          Grega Sever last edited by

          Thank you!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors