InitializeFolding() protected méthode

protected InitializeFolding ( AbstractFoldingStrategy foldingStrategy ) : void
foldingStrategy ICSharpCode.AvalonEdit.Folding.AbstractFoldingStrategy
Résultat void
Exemple #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#");
 }
 public void Apply(CodeEditor editor)
 {
     editor.Editor.TextArea.IndentationStrategy = new CSharpIndentationStrategy();
     editor.InitializeFolding(new BraceFoldingStrategy());
     editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("JavaScript");
 }
Exemple #3
0
 public void Apply(CodeEditor editor)
 {
     editor.Editor.TextArea.IndentationStrategy = new DefaultIndentationStrategy();
     editor.InitializeFolding(new XmlFoldingStrategy());
     editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("XML");
 }
Exemple #4
0
 public void Apply(CodeEditor editor)
 {
     editor.Editor.TextArea.IndentationStrategy = new DefaultIndentationStrategy();
     editor.InitializeFolding(new XmlFoldingStrategy());
     editor.Editor.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition("XML");
 }