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) -
Changing only the ink color is much better than nothing, it works very well, thank you!
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