How to show web links with a different color in Notepad++ ?
-
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? -
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)