[Monodevelop-devel] Default TextStyle's
Christian Hergert
christian.hergert at gmail.com
Tue Aug 25 04:31:05 EDT 2009
While trying to figure out how to add a default style for python I
came across a couple things. It seems like the mime-types that are
globally configurable are hard coded (See
MonoDevelop.Projects.Gui.Dialogs.OptionPanels/CodeFormattingPanel.cs
or patch below). And beyond that, I can't seem to find a way to set
the default settings for a mime-type. Am I correct in that all the
default global formats inherit from the plain-text style?
For python specifically, almost nobody does anything other than
PEP8[1] (4 space tabs, etc). So having that as the default for
text/x-python makes a lot of sense.
Thoughts? Should we consider getting this in quick for the 2.2 branch?
-- Christian
[1] http://www.python.org/dev/peps/pep-0008/
Index: main/src/core/MonoDevelop.Projects.Gui/MonoDevelop.Projects.Gui.Dialogs.OptionPanels/CodeFormattingPanel.cs
===================================================================
--- main/src/core/MonoDevelop.Projects.Gui/MonoDevelop.Projects.Gui.Dialogs.OptionPanels/CodeFormattingPanel.cs (revision
140589)
+++ main/src/core/MonoDevelop.Projects.Gui/MonoDevelop.Projects.Gui.Dialogs.OptionPanels/CodeFormattingPanel.cs (working
copy)
@@ -135,7 +135,7 @@
else if (DataObject is SolutionItem)
GetItemMimeTypes (types, (SolutionItem)DataObject);
else
- return new string[] { "text/plain", "application/xml", "text/x-csharp" };
+ return new string[] { "text/plain", "application/xml",
"text/x-csharp", "text/x-python" };
return types;
}
More information about the Monodevelop-devel-list
mailing list