<<< Date Index >>>     <<< Thread Index >>>

Re: coloring problem



On 2005-04-01, Michelle Konzack <linux4michelle@xxxxxxxxxx> wrote:

> I have problems to colorize my box:

Change the quoting to either of the two forms shown below:  either
double-up on the backslashes or change the double-quotes to
single-quotes.

> 
>   __( '/home/michelle.konzack/.mutt/colors' )___________________________
>  /
> | ####################################################################
> | # Coloring the 'tdbox'
> | 
> | color body yellow               default "__\("

color body yellow               default "__\\("
color body yellow               default '__\('

> | color body brightmagenta        default " \'.*\' "
> | color body yellow               default ")_.*(_)"
> | color body yellow               default "^ /"
> | color body yellow               default "^| "

color body yellow               default "^\\| "
color body yellow               default '^\| '

Your expression is valid, but it means "match a null pattern at the
beginning of a line or a space anywhere."  The '|' is special and
needs to be quoted to be treated as a plain character.

> | color body yellow               default "^ \\"

color body yellow               default "^ \\\\"
color body yellow               default '^ \\'

> | color body yellow               default "______.*[_]"
>  \______________________________________________________________________
> 
> The first, fifth and sixth color rules do not work.
> 
> Exactly first and sixt give an error while parsing
> by 'mutt' and the fifth is ignored.
> 
> Why ?

The quoting rules are explained in the mutt manual, section 3.1,
"Syntax of Initialization Files".  The meaning of the infix logical
OR ('|') is explained in section 4.1, "Regular Expressions".

Gary

-- 
Gary Johnson                               | Agilent Technologies
garyjohn@xxxxxxxxxxxxxxx                   | Wireless Division
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA