LaTeX files highlighted as Octave instead of LaTeX

Bug #201776 reported by Matthias Metzger
2
Affects Status Importance Assigned to Milestone
GtkSourceView
Fix Released
Medium
gtksourceview2 (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

Since I upgraded to Hardy, in gedit all my existent *.tex-files are highlighted by default as "Octave" instead of "LaTeX".
Otherwise, when I save new *.tex-files the LaTeX-syntax highlighting is automatically applied.
Can I get back the automatical syntax highlighting for "LaTeX" on my existent *.tex-files?

Thanks
Matthias

ProblemType: Bug
Architecture: i386
Date: Thu Mar 13 13:20:51 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/gedit
Package: gedit 2.22.0-0ubuntu1
PackageArchitecture: i386
ProcEnviron:
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: gedit
Uname: Linux 2.6.24-12-generic i686

Tags: apport-bug
Revision history for this message
Matthias Metzger (macellarius) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your report, I've tried to reproduce this with a latex file i have and it works fine It got highlighted as a latex file, can you attach one of those files to the report? thanks you.

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Matthias Metzger (macellarius) wrote :

Hi,

I think I just found out what the problem is. In almost every of my .tex files I have a comment on the first lines like

line 1: % Essay by Matthias Metzger
line 2: % Date: 08-03-26
line 3:
line 4: \documentclass[]{}...

When I open these files the syntax isn't highlighted, even when I save them once more.
But when I remove the comment and save them, the syntax is highlighted.
I found two "old" files without comment at the beginning and there the highlighting works perfect.
Well, I installed for testing purposes a latex-plugin for gedit (http://live.gnome.org/Gedit/LaTeXPlugin) and that also detects the "commented" files and highlights them as .tex-files.
I attach a file with such a comment, that isn't highlighted.

Regards
Matthias Metzger

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

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: http://bugzilla.gnome.org/show_bug.cgi?id=524802

Changed in gedit:
status: Incomplete → Confirmed
Changed in gtksourceview2:
status: Confirmed → Triaged
Changed in gtksourceview:
status: Unknown → New
Changed in gtksourceview:
status: New → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

this seems to be working fine now with 2.24 may you confirm? thanks.

Revision history for this message
Matthias Metzger (macellarius) wrote :

yes, it's working fine now. thanks.

Changed in gtksourceview:
status: Confirmed → Fix Released
Revision history for this message
Pedro Villavicencio (pedro) wrote :

thanks, marking it as fixed then.

Changed in gtksourceview2:
status: Triaged → Fix Released
Changed in gtksourceview:
importance: Unknown → Medium
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.