# -*- perl -*-
#
# This script is eval'ed by the fileViewer.cgi script.
#
# Input is a scalar, $FILE, that contains the file text
#
#
#################################################################
#
# Add colour to html
#
#################################################################
my $bracketStyle="color: blue;" ;
my $firstWordStyle="color: blue; font-weight: bold ;" ;
my $restWordsStyle="color: green;" ;
my $leftbr = "<" ;
my $rightbr = ">" ;
$FILE =~ s/<(\/{0,1}\w+)(.*?)>/$leftbr$1<\/span>$2<\/span>$rightbr/sg ;
$FILE =~ s/<(!.*?)>/$leftbr$1<\/span>$rightbr/sg ;
$FILE =~ s/&([^;]+);/&$1;<\/a><\/span>/sg ;
#
# End
#