Example #1
0
 public void Execute(IReplWindow window, string arguments)
 {
     using (var stream = new StreamReader(arguments)) {
         string line;
         while ((line = stream.ReadLine()) != null) {
             if (line.StartsWith("%%")) {
                 window.PasteText(String.Empty);
             } else {
                 window.PasteText(line);
             }
         }
     }
     window.PasteText(window.CurrentView.Options.GetNewLineCharacter());
 }
Example #2
0
 public void Execute(IReplWindow window, string arguments)
 {
     using (var stream = new StreamReader(arguments)) {
         string line;
         while ((line = stream.ReadLine()) != null)
         {
             if (!line.StartsWith("%%"))
             {
                 window.PasteText(line);
             }
         }
     }
     window.PasteText(window.TextView.Options.GetNewLineCharacter());
 }