Public bug reported:

Binary package hint: gedit

Try writing the following (perfectly valid) example php code in gedit
with "highlight mode" set to "php".

Expected: highlight should be correct, as the code is ok. Code between
<?php and ?> should be highlighted as php, and inside it, code between
quotes should be shown as a string. Code outside php tags should be
highlighted as html.

Observed: the opening quotes of the string are wrongly interpreted as
closing quotes of the html attribute (ignoring the fact that they are
inside the <?php ... ?> block), and starting from there code is
highlighted as HTML.

Here's the example code:

<html>
<body>

<a href="<?php echo "this is a string"; ?>">link</a>

</body>
</html>

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gedit 2.30.3-0ubuntu0.1
ProcVersionSignature: Ubuntu 2.6.32-27.49-generic 2.6.32.26+drm33.12
Uname: Linux 2.6.32-27-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Fri Jan 21 19:45:41 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

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

Title:
  strings break php syntax highlight

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to