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

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

Re: Displaying TABS vs SPACES


From: Micha Feigin
Subject: Re: Displaying TABS vs SPACES
Date: Thu, 3 Jun 2004 14:25:42 +0300
User-agent: Mutt/1.5.6i

On Wed, Jun 02, 2004 at 08:08:00PM -0700, exits funnel wrote:
> Hello,
> 
> I'm trying to find a way to distinguish tabs from
> consecutive spaces in some source code I've inherited
> so I can get the formatting straightened out, but I
> can't figure out how.  I'm sure there must be a mode
> which allows me to distinguish the two.  If anyone
> could point me in the right direction I'd really
> appreciate it.
> 

I forgot the fontlock entry, this is the full entry:

(custom-set-faces
 '(my-tab-face            ((((class color)) (:background "gray10"))) t)
 '(my-trailing-space-face ((((class color)) (:background "gray10"))) t))

(add-hook 'font-lock-mode-hook
  (function
    (lambda ()
      (setq font-lock-keywords
            (append font-lock-keywords
                    '(("\t+" (0 'my-tab-face t))
                      ("[ \t]+$" (0 'my-trailing-space-face t))))))))


> -exits
> 
> 
>       
>               
> __________________________________
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/ 
> 
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>  
>  +++++++++++++++++++++++++++++++++++++++++++
>  This Mail Was Scanned By Mail-seCure System
>  at the Tel-Aviv University CC.
> 




reply via email to

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