How do I define new file types

gabriel danstemporaryaccount at yahoo.ca
Wed Nov 12 00:08:40 GMT 2003


On November 11, 2003 06:28 pm, Parzival wrote:
> I have files <basename>.icn, which are for the Unicon programming language.
> I have prepared Kate syntax highlighting definition, which among other
> things specifies that the highlighting is to occur for mime type
> "text/x-unicon". However I don't know any way to get KDE to create or
> recognize  such a mime type.
>
> Similarly, I have a constuction tool SCons, like make, which uses
> textual specifications conventionally stored in files named "SConstruct".
> ("Sconstruct" is to SCons as "Makefile" is to make).
>
> I would like to associate this file name with a new mime type, and then be
> able to define a syntax highlighting specification for it as well as other
> KDE type-dependent actions, which is chosen on the basis of the mime type.
>
> How can I do this?
>
> (I would just like to anticipate any objection that say, "text/x-unicon" is
> not an "official" mime type: I have just checked the IANA mime type list,
> and most of the mime-types associated with programming lanuage source code
> in Kate highilghting system have mime types that are not on the IANA list.)


here's what you gotta do:

open konqueror and go to settings > configure konqueror
in the window that appears, select "file associations"
then on the right, click "add" and fill in everything you need.

good luck ;-)

-- 
you can only be free if i am free.
  - clarence darrow

___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list