Page 1 of 1

Bug: Syntax highlighting gets confused with < operator

Posted: Thu Oct 12, 2006 5:43 am
by Raven
TextPad v4.7.3 32 bit

Place the following PHP code in TextPad and you would expect to see this:

echo " x < y ";
echo " Hello ";
echo " y > x ";



Instead you will see this:

<?php
echo " x
< y ";
echo "
Hello ";
echo "
y > x ";

?>

TextPad appears to be mistaking the < (less than operator) for an opening HTML tag. You will see the color coding corrects itself as soon as it sees the > (greater than operator).