Beispiel #1
0
        public void LoadFile(string fn)
        {
            Editor.LoadFile(fn);             // auto-sets syntax highlighting mode
            ChooseHighlighter();

            // Modified flag is set during loading because the document
            // "changes" (from nothing to something). So, clear it again.
            SetModifiedFlag(false);
        }
Beispiel #2
0
 public void LoadFile(string fn)
 {
     Editor.LoadFile(fn);             // auto-sets syntax highlighting mode
     // TextEditorControl clears highlighting if file extension was unknown
     if (fn.EndsWith(".ecs") || fn.EndsWith(".les"))
     {
         Editor.SetHighlighting("C#");                 // there, FTFY
     }
     // Modified flag is set during loading because the document
     // "changes" (from nothing to something). So, clear it again.
     SetModifiedFlag(false);
 }