Item2225: SyntaxHighlightingPlugin ignores macro escape
Priority: Normal
Current State: Confirmed
Released In:
Target Release: n/a
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