|
Hi, I'm using Mono.TextEditor to create the native Linux port of SemanticMerge (www.semanticmerge.com). I'd like to know how to enable code folding like MonoDevelop does. So far this is all what I'm doing (for test purposes): TextEditor CreateTextEditor() { TextEditor editor = new TextEditor (); TextEditorOptions options = new TextEditorOptions (); options.EnableSyntaxHighlighting = true; options.ShowFoldMargin = true; options.ShowWhitespaces = ShowWhitespaces.Selection; options.DrawIndentationMarkers = true; options.EnableAnimations = true; //options.ColorScheme = "Visual Studio"; editor.Options = options; editor.Text = System.IO.File.ReadAllText ("/home/pablo/workspace/TestTextEditor/TestTextEditor/MainWindow.cs"); editor.Document.MimeType = "text/x-csharp"; return editor; } Thanks! pablo |
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
