/[RomCheater]/trunk/RomCheater.ScratchPad/ScratchPadDocument.cs
ViewVC logotype

Diff of /trunk/RomCheater.ScratchPad/ScratchPadDocument.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater.ScratchPad/ScratchPadDocument.cs	2013/06/21 04:15:45	781
+++ trunk/RomCheater.ScratchPad/ScratchPadDocument.cs	2013/06/21 04:22:03	782
@@ -10,7 +10,6 @@
 using RomCheater.Core;
 using System.IO;
 using RomCheater.Logging;
-using Fireball.CodeEditor.SyntaxFiles;
 
 namespace RomCheater.ScratchPad
 {
@@ -139,13 +138,7 @@
                             {
                                 var text = sr.ReadToEnd();           
                                 sr.Close();
-
-                                txtEditor.Document = new Fireball.Syntax.SyntaxDocument();
-                                //txtEditor.Font = new System.Drawing.Font(this.Font.FontFamily, this.Font.SizeInPoints);
-                                txtEditor.Document.Text = text;                                
-                                SyntaxLanguage language = SyntaxLanguage.Text;
-                                CodeEditorSyntaxLoader.SetSyntax(txtEditor, language);
-                                txtEditor.Document.ReParse();
+                                txtEditor.Text = text;                                
                                 this.UpdateTabName(fi.Name);
                                 this.IsDefaultDocument = false;
                                 this.DocumentSaved = true;
@@ -193,7 +186,7 @@
                         {
                             try
                             {
-                                foreach (var t in txtEditor.Document.Lines)
+                                foreach (var t in txtEditor.Lines)
                                 {
                                     sw.WriteLine(t);
                                 }

 

  ViewVC Help
Powered by ViewVC 1.1.22