Re: [gedit-list] Syntax highlighting for file with wrong filetype



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]