← Back to team overview

desktop-packages team mailing list archive

[Bug 844952] [NEW] php + html comment = wrong highlight

 

Public bug reported:

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
ProcVersionSignature: Ubuntu 2.6.35-30.56-generic 2.6.35.13
Uname: Linux 2.6.35-30-generic i686
NonfreeKernelModules: nvidia
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

** Affects: gedit (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 maverick

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gedit in Ubuntu.
https://bugs.launchpad.net/bugs/844952

Title:
  php + html comment = wrong highlight

Status in “gedit” package in Ubuntu:
  New

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
  ProcVersionSignature: Ubuntu 2.6.35-30.56-generic 2.6.35.13
  Uname: Linux 2.6.35-30-generic i686
  NonfreeKernelModules: nvidia
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/844952/+subscriptions


Follow ups

References