php + html comment = wrong highlight
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GtkSourceView |
New
|
Undecided
|
Unassigned | ||
gtksourceview3 (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
Nesting of php tags inside html comments is treated incorrectly.
Code within <?pho and ?> will get parsed by php even if it is inside a <!-- --> html comment, so it should be highlighted with php syntax highlight in gedit. However it isn't. It is shown in blue as if it was part of the html comment.
Example:
<html>
<!-- comment
<?php
// This code will be parsed and executed by php, so it should be highlighted in php syntax
echo "This will be output within the html comment";
?>
-->
</html>
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gedit 2.30.3-1ubuntu1
ProcVersionSign
Uname: Linux 2.6.35-30-generic i686
NonfreeKernelMo
Architecture: i386
Date: Thu Sep 8 18:01:13 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: gedit
Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https:/ /wiki.ubuntu. com/Bugs/ Upstream/ GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.