[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax Highlighting Latency in Emacs
From: |
jab3 |
Subject: |
Re: Syntax Highlighting Latency in Emacs |
Date: |
Tue, 21 Dec 2004 15:03:02 -0500 |
Peter Lee finally wrote on Tue December 21 2004 01:38 pm:
>>>>> jab3 writes:
>
> jab3> I'm also interested in figuring out (maybe
> jab3> with regular expressions) a way to make Emacs emulate another
> vim feature jab3> that I do like: highlighting control characters in
> quoted strings in a C
> jab3> file. For instance, in printf("Hello %s\n", name); I would like
> the %s and jab3> \n highlighted in a different color from the normal
> string quote color.
>
> Do you mean like
> M-x highlight-regexp [ret] \%s
> M-x highlight-regexp [ret] \\n
>
> C-x w h
>
> Or do you mean something more permanent? You could probably use
> highlight-regexp in conjunction with one of the font-lock
> callbacks... But there's probably a better way.
Ah. That seems to be doing what I want. What if I just put the commands in
my .emacs file? How would I type the command for that file?
(highlight-regexp "\%s" 'font-lock-function-name-face) ???
I know that's probably not right, but would something like that work?
Thanks,
jab3
Re: Syntax Highlighting Latency in Emacs, Pierre-Charles David, 2004/12/13
Re: Syntax Highlighting Latency in Emacs, Kai Grossjohann, 2004/12/13
Message not available
Re: Syntax Highlighting Latency in Emacs, jab3, 2004/12/21