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: | 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 , 17 years ago
follow-up: 3 comment:2 by , 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
comment:3 by , 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 , 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 , 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 , 16 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Let's see: is this still an issue with Pygments?
<?php echo '<p> Blah blah </p>'; ?>
Nope, looks fine.
What version of Trac are you using? If pre-0.11 (trunk), are you using ClearSilver? Which version.