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

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

Re: How to add syntax-highlighting to a Help buffer?


From: Vaidheeswaran C
Subject: Re: How to add syntax-highlighting to a Help buffer?
Date: Fri, 03 Jul 2015 14:50:27 +0530
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.3.0

Put it in hi-lock-mode.  See if it helps.

C-h K C-x w h




On Friday 03 July 2015 01:29 PM, Raffaele Ricciardi wrote:
> I would like to add some syntax-highlighting to Help buffers. I have
> tried to do that for example with the Help buffer displayed by C-h f
> read-string RET, by following the usual way:
> 
> (font-lock-add-keywords
>  nil
>  `(("\\(arbitrary regexp\\)" 1 'font-lock-function-name-face)))
> 
> But the above expression breaks the existing highlighting (the
> highlighting of the function arguments disappears).  Also, now C-- C-x
> C-q M-: (insert (propertize "test" 'face 'font-lock-warning-face)) RET
> does not insert colorized text as it would do with a fresh Help buffer.
> 
> I am using GNU Emacs 24.5.
> 
> Thank you.
> 





reply via email to

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