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