Syntax highlighting of JavaScript in HTML falls back to HTML too early

Bug #512274 reported by netAction
This bug report is a duplicate of:  Bug #498745: determine encoding from headers. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
New
Low
Unassigned

Bug Description

Binary package hint: gedit

gedit 2.28.0-0ubuntu2 on Ubuntu 9.10 i386
This works as it should:

<html>
<script>
document.write('<br>');
var foo = 'bar';
</script>
</html>

With an added slash it does not work. The declaration of foo is already highlighted like HTML:

<html>
<script>
document.write('<br/>');
var foo = 'bar';
</script>
</html>

Tags: likely-dup
Revision history for this message
Pedro Villavicencio (pedro) wrote :

saw a similar issue with xml files. will look the number as soon as launchpad works fine again.

Changed in gedit (Ubuntu):
importance: Undecided → Low
tags: added: likely-dup
Revision history for this message
netAction (launchpad-netaction) wrote :

There is an issue with CSS, too. gedit does not highlight any CSS between STYLE tags when set to HTML mode.

<style type="text/css">
* { font-size:16px; }
</style>

Revision history for this message
Pedro Villavicencio (pedro) wrote :

found the bug, gedit should use the html headers to determine the encoding which it doesn't right now, linking the report , thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.