[Gtk-sharp-list] Enable code folding on Mono.TextEditor
Stephen Shaw
sshaw at decriptor.com
Tue Jun 11 16:46:20 UTC 2013
I'm not sure I have an answer to your question, but I was just
wondering if something like NRefactory would be of any value to
semanticmerge?
BTW, I'm very excitedly awaiting the mac version :)
Cheers,
Stephen Shaw
On Tue, Jun 11, 2013 at 3:49 AM, psantosl at codicesoftware.com
<psantosl at codicesoftware.com> wrote:
> 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 - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
More information about the Gtk-sharp-list
mailing list