Community
    • Login

    Cannot add style token to selected text anymore

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

            This post is deleted!
            1 Reply Last reply Reply Quote -3
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors