On Oct 20, 2006, at 7:06 AM, Seth Dillingham wrote:
On 10/20/2006, Trevor Harrison said:
Does anyone have a Codeless Langauge module for PHP that is better
then the included one for better Syntax Coloring?
Could you describe or define what you mean by "better"?
The only problems I've seen with BBEdit's PHP syntax coloring is in
nested tags like these:
<a href=""<?php echo ($x == true ? " class=\"foo\"" : " class=
\"bar\""); ?>>Test 1</a>
<a href="javascript:foo()<?php echo ($x == true ? ";bar();" :
";"); ?>">Test 2</a>
Also, while we're on the topic of PHP parsing, the Function Menu gets
a little confused when a PHP class contains an empty function. In the
following example, the Blue and Yellow functions show up properly
indented under the Color class in the Function Menu. However, any
functions following the empty Yellow function (Orange and Green
functions) don't get indented under the parent class in the Function
Menu. If any character is entered between the braces of the Yellow
function, all the fucntions in the class then get indented properly.
<?php
class Color
{
public function Blue()
{
echo "Blue";
}
public function Yellow() {}
public function Orange()
{
echo "Orange";
}
public function Green()
{
echo "Green";
}
}
?>
The Function Menu indenting issue has already been reported to
BareBones, but I have not posted anything on the syntax coloring.
Dennis
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>