[MonoDevelop] Overriding the highlighter

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Nov 15 12:49:33 EST 2007

On Nov 15, 2007 8:05 AM, Carlo Kok <ck at carlo-kok.com> wrote:
> Hi,
> Seems the text editor in MD decides on a highlighter depending on the
> filename. However it has built in highlighters (seems to be part of the
> GTK+ Sourceview code) for the filename I use. Is there a way to override
> the highlighter used for a specific file or extension within MD so it
> does not use the built in one?

MonoDevelop uses GnomeVFS to determine the mime type of a file, which
I believe scans some of the file contents before falling back to
filename endings. MD passes this mimetype to GtkSourceView, which
looks up which of its highlighting schemes are able to highlight that
mimetype. Currently the only way you could change the highlighting
scheme would be to alter your system's mimetype lookup settings, or
edit GtkSourceView's highlighting schemes. This would affect GEdit

Michael Hutchinson

More information about the Monodevelop-list mailing list