Can gedit highlight files automatically?

Asked by cloudycrane

Is it possible to let gedit highlight file automatically by the extension?
It is very inconvenient to select highlight mode everytime.

Thanks for help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Solved by:
cloudycrane
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please read this http://ubuntuforums.org/showthread.php?t=463344

Hope this helps

Revision history for this message
cloudycrane (cloudycrane) said :
#2

Thank you very much!
I added '<glob pattern="*.f"/>' in my "freedesktop.org.xml" file, then it worked well for fortran files.
But it's very strange. In this file, it has had '<glob pattern="*.[fF]"/>' before my change. But Gedit cannot identify my *.f files except adding '<glob pattern="*.f"/>'.