Community
    • Login

    Autocomplete issues.

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 2.4k Views 1 Watching
    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 Offline
      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 Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors