FAQ about patches | More patches | Main Page | MD5 sum for this patch

Paint special text in the body of the message in any custom color
Patch is available for version: alpine 1.00 alpine 1.10 alpine 2.00 alpine 2.01 alpine 2.10 alpine 2.11 alpine 2.20 alpine 2.21
 
This patch allows you to define special custom text that will be seen in a different color than normal text. This can be used in different ways, one can use it to emphasize important keywords in a message, or to erase offensive language.
 
In order to use this option, you must define the variable special-text-color, as a comma separated list of regular expressions (or simply text), that you want to have colored.
 
Additionally, you must define the variables special-text-foreground-color and special-text-background-color, which specify the colors in which the special text will be painted. Notice that this variable must be defined, since otherwise you will not see any difference in the painted text (the default is to paint this text as if it were normal text). These variables can be defined from the Kolor configuration screen (which can be reached by pressing M S K), and setting the variable Special-text Color.
 
When this patch is integrated with all.patch, quote strings are ignored when painting special text, which is not the case when the patch is applied as an stand alone patch (and in fact, if you try to paint a ">" character using this patch, this will destroy painting of quoted text). I may add this functionality later
 
Here's an example of what this patch does. Say you want Alpine to paint the word "love", then you could define special-text-color=love, and say you define that you want Alpine to paint that word in red, then the text
 
All we need is love in a clove
 
would look like
 
All we need is love in a clove
 
This link shows you an image of how Alpine looks when the word pine has been painted in red in a real message. Observe that Alpine still recognizes quote levels correctly. The image shows the patch integrated with all.patch.

Last Updated 16:15:26 MST Sun Feb 05 2017.