• Login
Community
  • Login

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

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 2 Posters 3.3k 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.
  • B
    Boris Prokopenko
    last edited by Dec 1, 2016, 1:48 AM

    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
    • J
      Jim Dailey
      last edited by Dec 1, 2016, 3:29 PM

      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
      • B
        Boris Prokopenko
        last edited by Dec 1, 2016, 6:52 PM

        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
        • J
          Jim Dailey
          last edited by Jim Dailey Dec 1, 2016, 8:08 PM Dec 1, 2016, 8:08 PM

          @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
          • B
            Boris Prokopenko
            last edited by Dec 2, 2016, 1:31 AM

            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
            4 out of 5
            • First post
              4/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors