Community
    • Login

    Cannot add style token to selected text anymore

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 662 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.
    • christian faisstnauerC Offline
      christian faisstnauer
      last edited by

      Since my last upgrade I cannot “highlight” selected text anymore.
      If I double click on a word and then apply a style token, it works; but if I select a text by clicking & dragging the mouse, applying a style token doesn’t seem to have any effect.
      Any idea how to solve this (other than downgrading to previous versions) ?

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

        @christian-faisstnauer ,

        There was an added setting in v8.0 and newer which slightly changed the default behavior of the style token highlighting:

        If you uncheck the Mark All => ☐ Match whole word only (as shown in the screenshot), then the style-token highlighting will work even if you select only part of a word, or if your selection goes across a word boundary (like punctuation or spaces)

        previous answers on similar questions:

        • https://community.notepad-plus-plus.org/post/68148
        • https://community.notepad-plus-plus.org/post/67883

        official documentation:

        • https://npp-user-manual.org/docs/preferences/#highlighting
        1 Reply Last reply Reply Quote 2
        • christian faisstnauerC Offline
          christian faisstnauer
          last edited by

          Thank you! That solved the problem.
          Thanks also for the links, very useful!

          1 Reply Last reply Reply Quote 1
          • Malik JahangirM Offline
            Malik Jahangir
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote -3

            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