[MonoDevelop] NVelocity syntax highlighting patch
m.j.hutchinson at gmail.com
Fri May 23 17:23:41 EDT 2008
On Wed, May 21, 2008 at 9:44 AM, Patrick McEvoy <patrick at qmtech.net> wrote:
> Hope this can help other MonoRails users on mono!
<cut nvelocity highlighting patch>
This patch raises some issues with our current handling of mimetypes.
The monodevelop.xml files contains a set of mimetypes to be registered
with the GNOME mimetype database, and the monodevelop.desktop file
lists the mimetypes that MonoDevelop supposedly can open, which
Nautilus (and Konqueror etc?) use to decide which apps to open files
with. However, these don't fit well with our extension model. These
are essentially being associated with MonoDevelop regardless of
whether the extensions that can handle it are enabled. IMO MonoDevelop
should only be associated with projects supported by the core:
mdw/mds/mdp/mdproj/csproj/vbproj/sln (note that csproj and vbproj
don't actually have to be C# or VB; they can contain arbitrary MSBuild
A couple of points specific to this patch:
* you need to register the mimetype with the MonoDevelop extesnions
system too, as we no longer use the system mimetype database. I'm not
sure what the best addin would be for this; maybe you could create a
minimal MonoRail addin with some templates and stuff too?
* is text/x-nvelocity a mimetype used elsewhere? We can create new
mimetypes, but they should be the same as other people use.
More information about the Monodevelop-list