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: Jeff Rancier
Subject: Re: [h-e-w] Display links in blue for browse-url
Date: Mon, 25 Feb 2002 13:15:46 -0500

Try something like:

font-lock-add-keywords is a compiled Lisp function in `font-lock'.
(font-lock-add-keywords MAJOR-MODE KEYWORDS &optional APPEND)

Add highlighting KEYWORDS for MAJOR-MODE.
MAJOR-MODE should be a symbol, the major mode command name, such as `c-mode'
or nil.  If nil, highlighting keywords are added for the current buffer.
KEYWORDS should be a list; see the variable `font-lock-keywords'.
By default they are added at the beginning of the current highlighting list.
If optional argument APPEND is `set', they are used to replace the current
highlighting list.  If APPEND is any other non-nil value, they are added at
the
end of the current highlighting list.

For example:

 (font-lock-add-keywords 'c-mode
  '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend)
    ("\\<\\(and\\|or\\|not\\)\\>" . font-lock-keyword-face)))

adds two fontification patterns for C mode, to fontify `FIXME:' words, even
in
comments, and to fontify `and', `or' and `not' words as keywords.

Note that some modes have specialised support for additional patterns, e.g.,
see the variables `c-font-lock-extra-types', `c++-font-lock-extra-types',
`objc-font-lock-extra-types' and `java-font-lock-extra-types'.
----- Original Message -----
From: "Daniel Hegyi" <address@hidden>
To: <address@hidden>
Sent: Monday, February 25, 2002 12:30 PM
Subject: [h-e-w] Display links in blue for browse-url


| Hi,
|
| I'm using browse-url. Is there any way to display in blue (and maybe
| underline...) all words in all modes that start with "http://"; or
| "https://";?
|
| Thanks,
| Daniel
|
| _________________________________________________________________
| Join the world’s largest e-mail service with MSN Hotmail.
| http://www.hotmail.com
|




reply via email to

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