Here is a better regexp -
(font-lock-add-keywords
'jde-mode
'(("^\\( \\|....\\)\\( \\|....\\)\\( \\|....\\)\\(
\\|....\\)\\( \\|....\\)\\( \\|....\\)\\( \\|....\\)\\(
\\|....\\)\\( \\|....\\)\\( \\|....\\)\\( \\|....\\)\\(
\\|....\\)\\( \\|....\\)\\( \\|....\\)\\( \\|....\\)\\(
\\|....\\)\\( \\|....\\)\\( \\|....\\)\\( \\|....\\)\\(
\\|....\\)\\(..*\\)$" 21 'jde-bug-breakpoint-marker t)
)
)
Assumes a fill column of 80 and tab width of 4.
HTH,
sandip
> -----Original Message-----
> From: Sandip Chitale [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 07, 2001 4:46 PM
> To: '[EMAIL PROTECTED]'
> Subject: Limiting line length
>
>
> Here is the simplest trick that does what people have been
> asking for i.e. limiting line length. I had a hunch that
> font-locking could be used for that.
>
> The idea is to simply add the following regexp to the keyword list -
>
> (font-lock-add-keywords
> 'jde-mode
> '(
>
> ("^...........................................................
> ..............
> .......\\(..*\\)$" 1 jde-bug-breakpoint-marker t)
> )
> )
>
> (Note: there are eighty .s in the regexp)
> (Note: The font-lock-add-keywords needs to be called after
> (require 'jde) in
> your .emacs)
>
> Regexp experts will quickly notice that this works only if
> the source is
> untabified. Is there a quick way to get around that problem ?
>
>
> Sandip V. Chitale 150, Almaden Blvd
> Software Architect San Jose, CA, USA
> work: (408) 535 1791 ext: 791
> email: [EMAIL PROTECTED] web: http://www.brokat.com
>