Community
    • Login

    How to show web links with a different color in Notepad++ ?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 550 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.
    • SuperCPUS Offline
      SuperCPU
      last edited by

      Hello, I am editing a text file containing various web links, is it possible to show the links with a different color (ink and background)?
      If yes, then how?

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @SuperCPU
        last edited by

        @SuperCPU ,

        Notepad++'s default styling allows for deciding whether or not they have underlines and whether the hover indicator is foreground or box (Settings > Preferences > Cloud & Link > Clickable Link Settings); for color choices, you can choose the hover color (Settings > Style Configurator > Language: Global Styles > Style: URL hovered), which is the foreground normally or influences the color of the box if in fullbox mode. But Notepad++ doesn’t provide for specific foreground and background colors for non-hovered URLs.

        Some of the language lexers do their own lexing – and it might be that some of them have their own style for URLs, though I cannot remember any that do, for now. (HTML uses the same color for all its attributes, of which the href="https://..." is just one of many).

        EnhanceAnyLexer could match on https?://\S+ for foreground (but again, it cannot do background)

        SuperCPUS 1 Reply Last reply Reply Quote 2
        • SuperCPUS Offline
          SuperCPU @PeterJones
          last edited by

          @PeterJones

          Changing only the ink color is much better than nothing, it works very well, thank you!

          1 Reply Last reply Reply Quote 0

          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