alias aaa {
var %ppp $1-
echo -a :1: $+ %ppp $+ :
.echo -q $regsub(%ppp,/([<>%]+)/g,12\1,%ppp)
.echo -q $regsub(%ppp,/([$&]+)/g,04\1,%ppp)
echo -a :2: $+ %ppp $+ :
}
Add/remove <>% or $& chars as needed.

/aaa hello i spent a lot of $$ at the store today & actually it was about 50 % of my paycheck. --
:1:hello i spent a lot of $$ at the store today & actually it was about 50 % of my paycheck. --:
:2:hello i spent a lot of $$ at the store today & actually it was about 50 % of my paycheck. --:

Edit: BTW 01 might be YOUR "normal text" color, it isn't everyone elses though.

Last edited by Iori; 07/02/04 05:31 AM.