| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Been playing around with some color body patterns lately for things like smileys, dates and URLs etc. Did some googling and came across some color settings people had used. Just wondered what ones you find the most useful, or are most proud of, or are your favourite. Here are some I find useful. Can't remember which ones I did myself, and which ones I got from elsewhere. Please feel free to let me know if you have a better way of achieving the same thing. # emphasis color body brightwhite default "(^|[^[:alnum:]*])+[*]($|[- [:alnum:]])+[*]" # bold color body brightyellow default "(^|[^[:alnum:]])+[/]($|[-[:alnum:]])+[/]+[^[:alnum:]]+" # italics color body brightcyan default "(^|[^[:alnum:]])+[_]($|[-[:alnum:]])+[_]+" # underline # URLs color body color33 default \ "[\[<]?(https?|ftp|gopher|finger)://([^"'"'"' \t\r\n)>.,!?&]|[.,!?][^"'"'"' \ \t\r\n)>.,!?&]|&([^g]|$)|&g([^t]|$)|>([^;]|$))+[\]>]?" # not sure if these work completely as intended color body color229 default "[\[<]?(mailto ?[-a-z_0-9.+]+@[-a-z_0-9.?=]+[\]>]?" # email addressescolor body color75 default "(^| |[-.[:alnum:]]+:+)~?\(/[-_.'[:alnum:]]+\)+/?" # Unix file path color body brightmagenta default "(^|[ '\"]+)\\$[[:alnum:]][-_[:alnum:]]+" # variable # smileys color body brightyellow default "([*]?[{}><]?[;:][-=o^]?[][)(*><|DP\\/][)(]?)" color body brightyellow default "([{}]?[8][-=o^][)(><|DP\\/][)(]?)" color body brightyellow default "([)(]?[><|\\/)(][-=o^]?[8;:][{}]?)" color body green default "^ *[-+*o] +" # list item color body color225 default "[0-9]{2,3}[.]([0-9]{1,3}[.]){2}[0-9]{1,3}" # IP addresses -- Troy Piggins | http://piggo.com/~troy _ /|/ |\__/ Oo, ( \\ D Mutt 1.5.18 (with rr.compressed & vvv.nntp patches) L\-\L`\/| |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.