Re: How do I get GtkSourceView to recognize a mime-type



The tooltip says text/plain

On 2/11/07, Paolo Maggi <paolo maggi gmail com> wrote:
Does gedit recognize it as .ashx file? Look at the tooltip you get
moving the mouse pointer on the ab with the file name.

Ciao,
Paolo

On 2/11/07, John Anderson <sontek gmail com > wrote:
> .ashx is a file extension for an HttpHandler in mono which means it can be
> in multiple languages (C#, VB, Boo, Ruby, Python, etc) and I was wondering
> if there was an easy way to get gtksourceview to recognize this file
> extension and highlight it. Since I'm mainly a C# developer I'm willing to
> settle for C# highlighting this is what I did: copied csharp.lang to
> ashx.lang and then changed its mime type to application/x-ashx which
> gnomevfs-info told me was the type to be defined.  Yet when I open up gedit
> with a .ashx file it doesn't recognize the file by default and I have to
> view->highlighting mode->ashx
>
> I have 2 directories for mime types /usr/share/mime and
> /usr/local/share/mime     not sure if that would be causing this glitch.
>
>  Is there anything else I need to do?
>
> I'd also be willing to do the work to get it to allow all CLR lanagues if
> this is possible.
>
>  Thanks,
>  John
> _______________________________________________
> gnome-devtools mailing list
> gnome-devtools gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devtools
>
>



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