Community
    • Login

    Need help with configuring custom auto-complete (intellisense-like)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 2 Posters 3.7k Views 2 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.
    • Boris ProkopenkoB Offline
      Boris Prokopenko
      last edited by

      I’ve defined a new language “yyy” (works), made a script with AutoComplete entries (words+functions) and put it into plugins\APIs directory. Functions do not work.
      Then I’ve tried adding the description to userDefinedLang.xml and langs.xml, but still there is no function completion available.

      What am I doing wrong?

      1 Reply Last reply Reply Quote 0
      • Jim DaileyJ Offline
        Jim Dailey
        last edited by

        If your .xml file containing the words and functions is not sorted correctly (alphabetically, A-Z a-z), then auto-completion will silently fail. Also, auto-completion is not enabled by default, so be sure you have enabled it (Settings->Preferences->Auto-Completion).

        1 Reply Last reply Reply Quote 0
        • Boris ProkopenkoB Offline
          Boris Prokopenko
          last edited by

          OK, found it. It requires brackets to initiate “function”, while I was trying to make it bracketless. Without brackets function is a word, hence no “sense”.
          Otherwise xxx.xml inside plugins\APIs works fine.

          Is there any way to enter a space and/or tab within a keyword?

          1 Reply Last reply Reply Quote 0
          • Jim DaileyJ Offline
            Jim Dailey
            last edited by Jim Dailey

            @Boris-Prokopenko The XML format allows you enter spaces or tabs. Experimentally, when I try to use keywords that include spaces or tabs, the results are not what I (nor you, I imagine) would expect.

            1 Reply Last reply Reply Quote 0
            • Boris ProkopenkoB Offline
              Boris Prokopenko
              last edited by

              That I have already figured out. That is the reason I asked about a special symbol, which would convert to a space but would not break the keywords parser

              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