• Login
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.
  • S
    Sathish Kumar
    last edited by Jan 15, 2016, 6:07 AM

    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
    • D
      dail
      last edited by Jan 15, 2016, 7:09 PM

      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
      • S
        Sathish Kumar
        last edited by Jan 17, 2016, 3:36 PM

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

        1 Reply Last reply Reply Quote 0
        • D
          dail
          last edited by Jan 17, 2016, 6:16 PM

          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
          • S
            Sathish Kumar
            last edited by Jan 18, 2016, 6:19 AM

            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
            • D
              dail
              last edited by Jan 19, 2016, 5:10 PM

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