Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Cannot add style token to selected text anymore

    General Discussion
    3
    4
    155
    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 faisstnauer
      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) ?

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        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 faisstnauer
          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 Jahangir
            Malik Jahangir last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote -3
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors