PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > user defined mime types, source highlighting
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

user defined mime types, source highlighting

Réponse
 
LinkBack Outils de la discussion
Vieux 07/03/2007, 21h20   #1
Zoho Vignochi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut user defined mime types, source highlighting

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
  Réponse avec citation
Vieux 07/03/2007, 22h40   #2
Kevin Mark
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 |

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFF7zePv8UcC1qRZVMRApQxAJ9fdfyV5VTIoTSpT7FYad 4da5G1wACfavl4
zu90oc5jJNBIISY5yeln5a0=
=qngv
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 10/03/2007, 20h00   #3
Nyizsnyik Ferenc
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: user defined mime types, source highlighting

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
  Réponse avec citation
Vieux 13/03/2007, 17h50   #4
Michelle Konzack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: user defined mime types, source highlighting

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-----

  Réponse avec citation
Vieux 14/03/2007, 05h10   #5
Zoho Vignochi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: user defined mime types, source highlighting

> "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
  Réponse avec citation
Vieux 15/03/2007, 04h50   #6
s. keeling
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: user defined mime types, source highlighting

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h41.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16351 seconds with 14 queries