Re: [gedit-list] Syntax highlighting for file with wrong filetype
- From: Jean-Philippe Fleury <contact jpfleury net>
- To: gedit-list gnome org
- Subject: Re: [gedit-list] Syntax highlighting for file with wrong filetype
- Date: Thu, 27 Jan 2011 09:46:15 -0500
Ed Greenberg a écrit le 2011-01-26 22:00 :
> Got it working!!!
>
> I added python=python to the file
> /usr/share/gedit-2/plugins/modelines/language-mappings and then was able
> to declare the text file as follows:
>
> # vim: filetype=python :
>
> It needs to be on the top three or bottom three lines.
>
> Way cool!
Great that it works. :-)
Regards,
Jean-Philippe
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]