public static ascx_SourceCodeViewer set_ColorsForCSharp(this ascx_SourceCodeViewer sourceCodeViewer)
 {
     sourceCodeViewer.invokeOnThread(() =>
     {
         sourceCodeViewer.editor().setDocumentHighlightingStrategy("aa.cs");
     });
     return(sourceCodeViewer);
 }
 public static ascx_SourceCodeViewer astDetails(this ascx_SourceCodeViewer sourceCodeViewer, bool value)
 {
     sourceCodeViewer.invokeOnThread(() =>
     {
         sourceCodeViewer.editor()._ShowSearchAndAstDetails = value;
     });
     return(sourceCodeViewer);
 }
Ejemplo n.º 3
0
 public static ascx_SourceCodeViewer     set_Text(this ascx_SourceCodeViewer codeViewer, string text)
 {
     return(codeViewer.invokeOnThread(
                () =>
     {
         codeViewer.setDocumentContents(text);
         return codeViewer;
     }));
 }
 public static ascx_SourceCodeViewer set_Text(this ascx_SourceCodeViewer sourceCodeViewer, string text)
 {
     // ToCheckOutLater: I don't really understand why I need to run this of a different thread
     // (but when developing ascx_O2_Command_Line there was a case where I had an
     // "In setDocumentContents: GapTextBufferStategy is not thread-safe!"
     // error
     return((ascx_SourceCodeViewer)sourceCodeViewer.invokeOnThread(
                () =>
     {
         sourceCodeViewer.setDocumentContents(text);
         return sourceCodeViewer;
     }));
 }