Community
    • Login

    Autocomplete issues.

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 2.2k 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.
    • Alex sA
      Alex s
      last edited by

      Hello.
      I’ve been for a long time on Npp 6.3.2 and got used to PHP functions autocomplete. Yesterday I’ve updated to 7 and noticed, that autocomplete does not work as it did earlier.
      6.3.2 behaviour:
      I type “file” or “file_get”, press ctrl+space and hints popup shows up.
      7 behaviour:
      I type “file”, press ctrl+space and hints popup shows up.
      I type “file_get”, press ctrl+space and no hints.

      I tried many variations and figured out, that problem is in “_” symbol.

      How to fix this?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • guy038G
        guy038
        last edited by guy038

        Hi, Alex s,

        Very easy to get it :-))

        • Open, in N++, the file ....\Plugins\APIs\php.xml

        • At beginning of this file, just under the <AutoComplete> tag, insert the line, below :

          <Environment ignoreCase=“no” startFunc=“(” stopFunc=“)” paramSeparator=“,” additionalWordChar = “_” />

        • Save the changes, done in php.xml, and close this file

        • Close, then, re-start Notepad++

        • Open a PHP file or a new tab and define the language PHP, for this new tab

        • Type, for instance, the word, file_ at beginning of a line

        • Hit the CTRL + Spacebar shortcut

        => A pop-up list should appear, located on the word file_exists, followed by the three functions, below :

        File_get_contents
        
        File_put_contents
        
        File_register_wrapper
        
        .....
        

        Et voilà !

        Best Regards,

        guy038

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