Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 59 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.
    • SuperCPUS
      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
        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)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors