InitializeFolding() protected method

protected InitializeFolding ( AbstractFoldingStrategy foldingStrategy ) : void
foldingStrategy ICSharpCode.AvalonEdit.Folding.AbstractFoldingStrategy
return void
Esempio n. 1
0
 public void Apply(CodeEditor editor)
 {
     editor.Editor.TextArea.IndentationStrategy = new CSharpIndentationStrategy(editor.Editor.Options);
     editor.InitializeFolding(new BraceFoldingStrategy());
     editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("C#");
 }
Esempio n. 2
0
 public void Apply(CodeEditor editor)
 {
     editor.Editor.TextArea.IndentationStrategy = new CSharpIndentationStrategy();
     editor.InitializeFolding(new BraceFoldingStrategy());
     editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("JavaScript");
 }
Esempio n. 3
0
 public void Apply(CodeEditor editor)
 {
     editor.Editor.TextArea.IndentationStrategy = new DefaultIndentationStrategy();
     editor.InitializeFolding(new XmlFoldingStrategy());
     editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("XML");
 }
Esempio n. 4
0
 public void Apply(CodeEditor editor)
 {
     editor.Editor.TextArea.IndentationStrategy = new DefaultIndentationStrategy();
     editor.InitializeFolding(new XmlFoldingStrategy());
     editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("XML");
 }