Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

#6497 closed defect (worksforme)

PHP highlighting doesn't work properly with strings spanning multiple lines

Reported by: moebiusproject@… Owned by: Christian Boos
Priority: low Milestone:
Component: rendering Version: 0.10.3
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When viewing PHP source in the source browser, quoted strings that span multiple lines are only highlighted correctly on their first line - after this they are treated as normal php code.

Attachments (0)

Change History (6)

comment:1 by sid, 17 years ago

What version of Trac are you using? If pre-0.11 (trunk), are you using ClearSilver? Which version.

comment:2 by moebiusproject@…, 17 years ago

I'm using Trac 0.10.3, installed via Ubuntu's apt-get. I haven't specifically installed ClearSilver, but it may have been included in the ubuntu package… I'm not sure

in reply to:  2 comment:3 by osimons, 17 years ago

Replying to moebiusproject@gmail.com:

I'm using Trac 0.10.3, installed via Ubuntu's apt-get. I haven't specifically installed ClearSilver, but it may have been included in the ubuntu package… I'm not sure

That would probably be SilverCity.

Anyway, more information on your package for syntax highlighting is needed - check with wiki:TracSyntaxColoring for details of what to look for.

comment:4 by sid, 17 years ago

Version: 0.10.3

It would be useful if you could paste a bit of PHP code that causes the problem for you to see if it works here. Put it in {{{ }}} blocks. Also would be useful to know which SilverCity version you are using (and even if you are using SilverCity), and probably checking their mailing list to see if anyone else has reported this issue.

comment:5 by moebiusproject@…, 17 years ago

I've looked through my dkpg lists, and I have python-clearsilver ver 0.10.3-4.1 so I guess trac is using that? What is the best way to tell?

As to the php code, this does it on mine:

<?php
echo '<p>
        Blah blah
      </p>';
?>

comment:6 by Remy Blank, 16 years ago

Resolution: worksforme
Status: newclosed

Let's see: is this still an issue with Pygments?

<?php
echo '<p>
        Blah blah
      </p>';
?>

Nope, looks fine.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.