[MonoDevelop] How do I add support for other file types?

John Anderson sontek at gmail.com
Thu Feb 8 02:35:03 EST 2007


Is it not possible to register multiple languages to a mime type?

On 2/7/07, Rafael Teixeira <monoman at gmail.com> wrote:
>
> The problem is it could be another .NET language, not only C#.
>
> On 2/8/07, John Anderson <sontek at gmail.com> wrote:
> > Well, If we registered the csharp.lang file to .ashx mime type it should
> > work just fine, a .ashx file is just a csharp file with a top tag
> >
> >
> > On 2/7/07, Michael Hutchinson <m.j.hutchinson at gmail.com> wrote:
> > > On 2/7/07, Lluis Sanchez <lluis at ximian.com> wrote:
> > > > El dc 07 de 02 del 2007 a les 01:20 -0700, en/na John Anderson va
> > > > escriure:
> > > > > Hey, I was wondering if anyone could point me in the right
> direction
> > > > > of where to add support for other file types into monodevelop.
> > > >
> > > > MonoDevelop depends on GnomeVfs for getting the (mime) type of a
> file.
> > > > So, if the file is properly registered in Gnome, it should work.
> > > >
> > > > Right now there is no way to register mime types for files in
> > > > MonoDevelop. I wonder if it would make sense to implement that.
> > >
> > > On Ubuntu 6.10, all the ASP.NET mime types are recognised. However,
> > > they aren't handled by the default source view for some reason, so I
> > > wrote a pseudo-DisplayBinding
> > > (Extras/AspNetAddIn/Project/AspNetDisplayBinding.cs) that
> > simply
> > > redirects it to a display binding that handles text. Getting the
> > > source view to open them directly involves messing around with mime
> > > types, but I'm not sure how.
> > >
> > >
> > > To get syntax highlighting to work involves registering .lang files
> > > for GtkSourceView that can handle the correct mime types. Examples are
> > > at
> >
> http://svn.gnome.org/viewcvs/gtksourceview/trunk/gtksourceview/language-specs/
> > > and an ASP.NET lang file is at
> > http://bugzilla.gnome.org/show_bug.cgi?id=139968.
> > > Unfortunately there's no mechanism for having regions of one language
> > > (eg. VB.NET, C#) embedded in a file of another language (ASP.NET
> > > markup). Code completion suffers from this same problem: it can be
> > > done, but it's going to be difficult.
> > >
> > > --
> > > Michael Hutchinson
> > > http://mjhutchinson.com
> > >
> >
> >
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> >
> >
>
>
> --
> Rafael "Monoman" Teixeira
> ---------------------------------------
> "The reasonable man adapts himself to the world; the unreasonable one
> persists in trying to adapt the world to himself. Therefore all
> progress depends on the unreasonable man." George Bernard Shaw
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20070208/34ed89c8/attachment-0001.html 


More information about the Monodevelop-list mailing list