[MonoDevelop] Trouble with XML plugin in 0.13

Rafael Teixeira monoman at gmail.com
Wed Mar 28 09:27:27 EDT 2007


No, MD and gedit just use the same component (same GTK Widget) to
show/interact with text. That component should have been installed
when you installed MD, so it seems like some packaging issue for your
distro, or some problem when configuring MD  if you compiled from
sources.

Which distro are you using?



On 3/28/07, Johannes Graumann <johannes_graumann at web.de> wrote:
> I clearly don't understand half of this discussion but I'd like to report
> that after installing gedit alongside md, creating a new XML file now
> works. However, the XML Editor Menue is present but all greyed out -  and
> not usable. Does that mean I'm really using gedit inside md for this at the
> moment?
>
> Sorry for my cluelessnes,
>
> Joh
>
> Matt Ward wrote:
>
> > Currently the XML Editor only supports the mime type "text/xml", but
> > according to RFC 3023 the mime type "application/xml" may be a valid
> > for an XML document:
> >
> > "The media types text/xml and application/xml MAY be used for document
> > entities" "Application/xml is preferable when the XML MIME entity is
> > unreadable by casual users."
> >
> > Even though application/xml should be used when the XML "is unreadable
> > by casual users" I can add support for it in the XML Editor addin.
> >
> > I could be wrong, but looking at the source code for MonoDevelop the
> > text editor does not necessarily open all mime types:
> >
> > SourceEditorDisplayBinding.cs
> >
> > public virtual bool CanCreateContentForMimeType (string mimetype)
> > {
> > if (mimetype == null)
> > return false;
> > if (mimetype.StartsWith ("text"))
> > return true;
> > if (mimetype == "application/x-python")
> > return true;
> > if (mimetype == "application/x-config")
> > return true;
> > if (mimetype == "application/x-aspx")
> > return true;
> >
> > // If gedit can open the file, this editor also can do it
> > foreach (DesktopApplication app in DesktopApplication.GetApplications
> > (mimetype))
> > if (app.Command == "gedit")
> > return true;
> >
> > return false;
> > }
> >
> > Regards,
> >
> > Matt
>
>
> _______________________________________________
> 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


More information about the Monodevelop-list mailing list