Thanks for this Marco.

For some reason my version 1.5.21 did not expand the char class
square brackets so I had to change the regex thusly;
color body brightgreen black "(http|https|ftp|news|telnet|finger)://[^ 
\"\t\r\n]*"

-- 
Eric Smith

Marco wrote on Wed-21-Aug 13  5:12PM
> On 2013–08–21 Eric Smith wrote:
> 
> > How do I highlight URL's in the mutt pager?
> 
> I use the following settings (I don't remember from which blog I
> stole them)
> 
>   # URLs
>   color body brightgreen black "(http[s]|ftp|news|telnet|finger)://[^ 
> \"\t\r\n]*"
>   color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+";
>   mono  body bold              "(http[s]|ftp|news|telnet|finger)://[^ 
> \"\t\r\n]*"
>   mono  body bold              "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+";
> 
>   # email addresses
>   color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
>   mono  body bold              "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
> 
> Marco


Reply via email to