diff --git a/src/ca65html/ca65html b/src/ca65html/ca65html index a8ed4e503..d5fc91915 100755 --- a/src/ca65html/ca65html +++ b/src/ca65html/ca65html @@ -87,7 +87,7 @@ my $LineLabels = 0; # Add a HTML label to each line my $LineNumbers = 0; # Add line numbers to the output my $LinkStyle = 0; # Default link style my $ReplaceExt = 0; # Replace extension instead of appending -my $StringColor = "#666666"; # Color for strings +my $StringColor = "#6169C1"; # Color for strings my $TextColor = "#000000"; # Text color my $Verbose = 0; # Be quiet @@ -180,8 +180,12 @@ sub StripPath { sub DocHeader { my $OUT = shift (@_); my $Asm = shift (@_); + if (not $Colorize) { + # Colorization generates invalid HTML. Common browsers display it + # correctly, but we don't claim it adheres to some standard ... + print $OUT "\n"; + } print $OUT <<"EOF"; -
@@ -191,8 +195,7 @@ sub DocHeader {
-
+-
EOF } @@ -204,18 +207,18 @@ sub DocFooter { # Get the current date and time my $Today = localtime; - print $OUT <<"EOF"; -
-
\n"; + print $OUT "