|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFF7zePv8UcC1qRZVMRApQxAJ9fdfyV5VTIoTSpT7FYad 4da5G1wACfavl4 zu90oc5jJNBIISY5yeln5a0= =qngv -----END PGP SIGNATURE----- |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Wed, 2007-03-07 at 16:59 -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. > > Bluefish recognizes .m files, if this s. -- Szia: Nyizsa. ---------------------------------------------------------------------- Click for free info on online degrees and make $150K/ year http://tags.bluebottle.com/fc/CAaCMP...UcYvlAfh7PZmO/ -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Am 2007-03-07 16:59:58, schrieb Zoho Vignochi:
> 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: ??? -- Why this? "gedit" support already Syntax Highlighting of Sourcecode and if the syntax for those "octave" files is currently not supported, create a new syntax file and put it into your config directory. I do not know how exactly, since I do not use Bloat-GNOME but I have read that $USER can add new syntaxes there. Otherwise you must add the syntax file to the systemwide syntax files. Thanks, Greetings and nice Day Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSN LinuxMichi 0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFF9s57C0FPBMSS+BIRAjrKAJ94tODhuzV7sGjdZPyXzy IUhw4+EQCfQj8l b3Qy+CzZGQVmduC0e4XYIr4= =JOtc -----END PGP SIGNATURE----- |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
> "gedit" support already Syntax Highlighting of Sourcecode and if the
> syntax for those "octave" files is currently not supported, create a > new syntax file and put it into your config directory. Yes, that's true but what I want is for gedit to automagically recognizes the source file as an octave source file. I can turn on the source highlighting myself no problem. So I guess what I am really asking is what is the debian way of adding mime types? -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
Zoho Vignochi <zoho.vignochi@gmail.com>:
> > "gedit" support already Syntax Highlighting of Sourcecode and if the > > syntax for those "octave" files is currently not supported, create a > > new syntax file and put it into your config directory. > > Yes, that's true but what I want is for gedit to automagically > recognizes the source file as an octave source file. I can turn on the > source highlighting myself no problem. > > So I guess what I am really asking is what is the debian way of adding > mime types? What's the Gnome/KDE/vim way of adding mime types so gedit will handle them? Dunno. For me, MIME is mail. ~/.mailcap, ~/mutt/mailcap, ... Is (G){vim,edit} supposed to grok MIME? I'll admit I'm confused. Emacs? -- Any technology distinguishable from magic is insufficiently advanced. (*) http://www.spots.ab.ca/~keeling Linux Counter #80292 - - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me. Spammers! http://www.spots.ab.ca/~keeling/emails.html -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
![]() |
| Outils de la discussion | |
|
|