Re: How to highlight columns?

[email protected] Mon, 22 Aug 2005 11:25:25 -0400
Newsgroups gmane.emacs.xemacs.general
Message-ID <OF3BF45431.8D37C850-ON85257065.005293D2-85257065.0054B99E@iqfinancial.com>
Sorry, no time to test in font lock, but, start with the regex:

.\{80\}.+

Shows lines longer than 80 chars.

Add a grouping to isolate the after 80 stuff:
.\{80\}\(.+\)

Then add to your font-lock list...
...
'(".\\{80\\}\\(.\\)"                  1 font-lock-string-face)
...

I'm guessing that's a start...
Hope it helps.



                                                                                                                         
                      "Dan Bar Dov"                                                                                      
                      <[email protected]>        To:       <[email protected]>                                      
                      Sent by:                   cc:                                                                     
                      xemacs-news-bounces        Subject:  How to highlight columns?                                     
                      @xemacs.org                                                                                        
                                                                                                                         
                                                                                                                         
                      08/21/2005 04:38 AM                                                                                
                                                                                                                         
                                                                                                                         





I'd like to highlight all text/code that's beyond column 80.
I cannot figure how to set font-lock to do that, not how to write an
interactive functions to do that.

Any ideas?

Dan