NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item2225: SyntaxHighlightingPlugin ignores macro escape
The
SyntaxHighlightingPlugin ignores any MACRO escape. Neither ! nor ! work. This is particularly frustrating for highlighting simple scripts that use the date command.
For example, the following;
%CODE{"perl"}%
#!/bin/perl -w
use strict;
use Getopt::Long;
my $date = `date "+!%Y%m%d_%H:%M:%S"`;
%ENDCODE%
Still tries to replace the %Y% with the image of a tick;
%CODE{"perl"}%
#!/bin/perl -w
use strict;
use Getopt::Long;
my $date = `date "+!

m%d_%H:%M:%S"`;
%ENDCODE%
Yep, can confirm the problem. Unfortunately its not an easy fix...
I will keep looking at it and let you know when its fixed.
--
AndrewJones - 15 Oct 2009
Another problem with this bug is that
some people use %INCLUDE% inside %CODE%, which still needs to get expanded.
No closer finding a good fix for this
--
AndrewJones - 17 Oct 2009