private void PrepareTextEditor() { codeCompletion = new ICSharpCode.CodeCompletion.CSharpCompletion(); codeCompletion.AddAssembly("UOMachine.exe"); scriptTextBox.Completion = codeCompletion; scriptTextBox.FontFamily = new FontFamily("Consolas"); scriptTextBox.FontSize = 12; scriptTextBox.TextArea.DefaultInputHandler.NestedInputHandlers.Add(new SearchInputHandler(scriptTextBox.TextArea)); FileNew_Click(null, null); scriptTextBox.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("C#"); scriptTextBox.Options = myCurrentOptions.TextEditorOptions; foldingManager = FoldingManager.Install(scriptTextBox.TextArea); new BraceFoldingStrategy().UpdateFoldings(foldingManager, scriptTextBox.Document); }
public void AddAssembly(string filename) { completion.AddAssembly(filename); }
public void ReferenceAssembly(Assembly assembly) { evaluator.ReferenceAssembly(assembly); codeCompletion.AddAssembly(assembly.Location); }