Community
    • Login

    How to add a new split symbol ?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 967 Views 2 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.
    • XJ.Chen XJ.ChenX Offline
      XJ.Chen XJ.Chen
      last edited by

      By default, when we double-click a word, we don’t select the + - = symbols (even if there are no spaces between the word and the symbol), because the editor thinks that they are not integrated with the words.
      now I want to let some new symbols, such as ¦ or ¶, be distinguished and not considered part of the word. How can I include these new symbols in the scope of the segmentation?

      1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones
        last edited by

        The ¦ (and the |, which you may have meant) and ¶ are already not considered part of the list of word characters for double-click purposes.

        I tried it on

        blah¦blah
        blah|blah
        blah¶blah
        blah+blah
        blah-blah,
        blah_blah
        blahæçèblah
        

        with both v7.7.1 and v7.8.1

        here’s an animation showing it working for me:

        if it’s not behaving that way for you, then you’ve got something else going on.

        Per the docs, you can add characters to the list of word-characters – so it will consider those characters part of a word – but there isn’t an exclusion list. Notepad++ defaults to the list of unicode “word characters”, which includes anything that’s a letter or number or underscore in any of the unicode subsections, but doesn’t include symbols, punctuation, or the like. If you’ve added the ¦ and ¶ to the word-character list, then double-click should include them, but otherwise double-click should not.

        XJ.Chen XJ.ChenX 1 Reply Last reply Reply Quote 2
        • XJ.Chen XJ.ChenX Offline
          XJ.Chen XJ.Chen @PeterJones
          last edited by

          @PeterJones Oh! In fact, I used the version of 7.5.5 before. After your reminder, I upgraded to the latest version, and then found that the problem was automatically solved 😂.
          Well, thank you very much for your reply.

          1 Reply Last reply Reply Quote 2

          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