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

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

Re: How to highlight UUID in all buffes?


From: William Xu
Subject: Re: How to highlight UUID in all buffes?
Date: Sat, 15 Oct 2022 10:11:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)

Jean Louis <bugs@gnu.support> writes:

> Now I found regular expression in library thingatpt:
>
> (defconst thing-at-point-uuid-regexp
>   (rx bow
>       (repeat 8 hex-digit) "-"
>       (repeat 4 hex-digit) "-"
>       (repeat 4 hex-digit) "-"
>       (repeat 4 hex-digit) "-"
>       (repeat 12 hex-digit)
>       eow)
>   "A regular expression matching a UUID.
> See RFC 4122 for the description of the format.")
>
> How to invoke highlighting in every buffer on UUID?

Use font-lock-add-keywords? 

-- 
William




reply via email to

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