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

Re: user defined mime types, source highlighting



On Wed, Mar 07, 2007 at 04:59:58PM -0400, Zoho Vignochi wrote:
> Hello,
> 
> I write code in Octave (a free Matlab clone) and I would like the source
> files which have an extension .m to be recognized and automagically
> highlighted in gedit. As of now I have to select Octave highlighting
> myself every time when opening an octave source file. 
> 
> I thought that creating a ~/.mime.types file with the contents:
> 
> # User MIME-TYPES and the extensions that represent them
> 
> text/x-octave           m
> 
> This however is not working because when I look at the properties under
> nautilus it is listed as "Objective-C source code". Any suggestions?
> 
> Thank you for your time.
A possible hack is to remove entries that refer to 'Objective-C' in
these databases and add yours. If the database search is finding the
objective-c entries it may stop searching and not see your entires.
hmm. I just remembered that you can have a local database entry to
override the system one -- like you showed--but I'm not sure how it
deals with each and the priority each gets.
-- 
|  .''`.  == Debian GNU/Linux == |       my web site:           |
| : :' :      The  Universal     |mysite.verizon.net/kevin.mark/|
| `. `'      Operating System    | go to counter.li.org and     |
|   `-    http://www.debian.org/ |    be counted! #238656       |
|  my keyserver: subkeys.pgp.net |     my NPO: cfsg.org         |

Attachment: signature.asc
Description: Digital signature


Reply to: