/usr/share/enscript/hl/lang_cvsweb.st is in cvsweb 3:3.0.6-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | /*
GNU Enscript language file for FreeBSD-CVSweb.
$FreeBSD: projects/cvsweb/enscript/lang_cvsweb.st,v 1.2 2003/05/04 10:42:20 scop Exp $
*/
state lang_cvsweb
{
BEGIN {
/* RGB -> HTML color mapper function. */
sub map_color (r, g, b)
{
return sprintf ("#%02X%02X%02X", r, g, b);
}
LANGUAGE_SPECIALS = /[<>\&\"]/;
sub language_print (str)
{
str = regsuball (str, /\&/, "&");
str = regsuball (str, /</, "<");
str = regsuball (str, />/, ">");
str = regsuball (str, /\"/, """);
print (str);
}
sub language_symbol (symbol)
{
return false;
}
sub header ()
{
}
sub trailer ()
{
}
sub face_on (face)
{
if (face[boldp])
print ("<b>");
if (face[italicp])
print ("<i>");
if (face[fg_color])
print ("<span style=\"color: ", face[fg_color], "\">");
if (face[bg_color])
print ("<span style=\"background-color: ", face[bg_color], "\">");
}
sub face_off (face)
{
if (face[fg_color])
print ("</span>");
if (face[bg_color])
print ("</span>");
if (face[italicp])
print ("</i>");
if (face[boldp])
print ("</b>");
}
return;
}
}
/*
Local variables:
mode: c
End:
*/
|