Community
    • Login

    CallTips - How to Add Keywords with Spaces

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 2 Posters 5.6k 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.
    • Sathish KumarS Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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

                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