help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] Display links in blue for browse-url


From: Jason Rumney
Subject: Re: [h-e-w] Display links in blue for browse-url
Date: 25 Feb 2002 21:39:22 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50

"Jeff Rancier" <address@hidden> writes:

> (font-lock-add-keywords 'emacs-lisp-mode
>                         '(("\\(^.*http:.*$\\)" 1 font-lock-hyperlink-face
> prepend)))
> 
> The only problem is that the whole line is underlined?  Can a more seasoned
> veteran assist with this?

Try "\\(http:[^ \t\n]*\\)" as the regexp.  You don't want to match
what's before the http:, and you only want to match up to the next
whitespace character.


-- 
Jason Rumney




reply via email to

[Prev in Thread] Current Thread [Next in Thread]