[gedit-list] Feature request: 'syntax=xxxx' modeline support



Hi all

I wonder if there might be the possibility of adding syntax highlighting
support to the modelines plugin.  Here are some examples where it would
be useful.

I frequently edit SCons build-scripts which are python scripts and
always named either 'SConstruct' or 'SConscript'. For use with vim, I
usually have a line at the end of the file saying "# vim: set syntax=python:

Another case where modelines support for syntax highlighting would be in
header-files, where I often use '.h' as the suffix for C++ files, which
gedit however interprets as C files.

Another place is in apache configuration files, which for example on
Debian/Ubuntu are in /etc/apache2/sites-available/xxxx and contain no
hints about their filetype. Modelines in this case would help to reduce
errors when editing those files.

Cheers,
JP








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]