Syntax Coloring Fails In Bluefish with Single-Line Comments

Asked by linux4me

I'm running Ubuntu 13.10 and Bluefish 2.2.4. I'm using a clean install of Ubuntu with my old /home directory copied over after installation, including my .bluefish folder. Syntax coloring in PHP files fails whenever a single line comment using // or # precedes a codeblock without an intervening empty line.

In this example, all the code between the PHP tags appears gray:
<?php
// Here is a comment.
$var =
echo "The value is " . $var;
?>

However, if I put an empty line between the comment and the code, the code has the proper syntax highlighting:
<?php
// Here is a comment.

$var =
echo "The value is " . $var;
?>

If I use a # instead of //, the same problem occurs. If I use multi-line comments, the syntax coloring is correct. Refreshing the syntax coloring with F5 makes no difference. I also renamed my .bluefish file and restarted Bluefish to see if some old setting was causing the issue, but the problem persisted.

I'm not sure if this is a bug, or something that may have come along from earlier installs/versions of Bluefish. Bluefish seems to work fine otherwise, but I really miss my syntax coloring.

Does anyone have any ideas?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug. Despite the colour being wrong does the code work ok?
Add that to the bug too.

Revision history for this message
linux4me (ta2008) said :
#2

Okay, I have filed a bug report.

Can you help with this problem?

Provide an answer of your own, or ask linux4me for more information if necessary.

To post a message you must log in.