Community
    • Login

    CallTips - How to Add Keywords with Spaces

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 2 Posters 4.9k 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.
    • Sathish KumarS
      Sathish Kumar
      last edited by

      Hi,

      I have created a Auto completion list with Keywords having Spaces like ‘Alias1 2 3’ but Np++ is showing Alias1, 2,3 as the Auto complete list.

      Could you please help me on how to make NP++ to display Keyword with spaces in Autocomplete list.

      Thanks and Regards,
      Sathish.

      1 Reply Last reply Reply Quote 0
      • dailD
        dail
        last edited by

        Currently that does not seem possible. Internally the keywords are joined together into a list by using spaces, so if a keyword happens to have a space in it, then it sees it as two keywords.

        In theory with a few code modifications it would be possible though.

        1 Reply Last reply Reply Quote 0
        • Sathish KumarS
          Sathish Kumar
          last edited by

          How can I make the code modification to show words with spaces?

          1 Reply Last reply Reply Quote 0
          • dailD
            dail
            last edited by

            Internally Notepad++ would have to use a different character (one that does not show up in the keywords) to join the keywords. Most likely this would be a configurable option in the xml file. Then that character would be specified to Scintilla when calling SCI_AUTOCSETSEPARATOR.

            1 Reply Last reply Reply Quote 0
            • Sathish KumarS
              Sathish Kumar
              last edited by

              I have added following line in xml but no luck with spaces.

              <Environment ignoreCase=“yes” startFunc=“(” stopFunc=“)” paramSeparator=“,” terminal=“;” additionalWordChar=“\s”/>.

              How can I configure the space to accept in XML.

              1 Reply Last reply Reply Quote 0
              • dailD
                dail
                last edited by

                In theory with a few code modifications it would be possible though.

                I was meaning C++ code modifications.

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