From 93978a2013fdb1a21089d6bd121eb896c79d33d1 Mon Sep 17 00:00:00 2001 From: Nadya Todorova Date: Tue, 6 Aug 2024 16:52:37 +0300 Subject: [PATCH 1/2] Add XMLFoldingTagger, LineHighlightTagger, JavaScriptFoldingTagger in docs --- .../features/taggers/folding-taggers.md | 8 +++++++- controls/syntax-editor/features/taggers/overview.md | 12 +++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/controls/syntax-editor/features/taggers/folding-taggers.md b/controls/syntax-editor/features/taggers/folding-taggers.md index 5cc94ef77..c9c1baaea 100644 --- a/controls/syntax-editor/features/taggers/folding-taggers.md +++ b/controls/syntax-editor/features/taggers/folding-taggers.md @@ -10,7 +10,13 @@ position: 2 # Folding Taggers -The folding taggers are used when you want to create collapsible (foldable) sections of code in a document. The base class responsible for this functionality is the **FoldingTaggerBase** class with concrete implementations provided out of the box being the **BracketFoldingTagger**, **CSharpFoldingTagger** and **VisualBasicFoldingTagger**. +The folding taggers are used when you want to create collapsible (foldable) sections of code in a document. **FoldingTaggerBase** class is the base class responsible for this functionality. The following folder taggers are available in our suite: + +* **CSharpFoldingTagger** +* **VisualBasicFoldingTagger** +* **XmlFoldingTagger** +* **JavaScriptFoldingTagger** +* **BracketFoldingTagger** >caption RadSyntaxEditor with a registered CSharpFoldingTagger diff --git a/controls/syntax-editor/features/taggers/overview.md b/controls/syntax-editor/features/taggers/overview.md index f9d6bfdaf..91b3d9b1d 100644 --- a/controls/syntax-editor/features/taggers/overview.md +++ b/controls/syntax-editor/features/taggers/overview.md @@ -20,7 +20,7 @@ The matched tags are then processed by the [UI layers]({%slug syntax-editor-feat ## Predefined Taggers -**RadSyntaxEditor** comes with a number of predefined taggers: +**RadSyntaxEditor** comes with a number of predefined taggers and folding taggers: * **CSharpTagger**: A tagger responsible for the syntax-highlighting in the C# programming language. * **VisualBasicTagger**: A tagger responsible for the syntax-highlighting in the Visual Basic programming language. @@ -30,8 +30,14 @@ The matched tags are then processed by the [UI layers]({%slug syntax-editor-feat * **BracketFoldingTagger**: A tagger responsible for creating collapsible (folding) regions in the code. Can be used for the JavaScript language. * **CSharpFoldingTagger**: A tagger responsible for creating folding regions in C# code. * **VisualBasicFoldingTagger**: A tagger responsible for creating folding regions in Visual Basic code. -* **TextSearchHighlightTagger**: A tagger which prepares collection of TextHighlightTag for all occurrences of a given search word. -* **TextSearchUnderlineTagger**: A tagger which prepares collection of UnderlineTag for all occurrences of a given search word. +* **XmlFoldingTagger**: A tagger responsible for creating collapsible (folding) regions in XML, XAML and HTML code documents. +* **JavaScriptFoldingTagger**: A tagger class responsible for creating collapsible (folding) regions in JavaScript code document. +* **TextSearchHighlightTagger**: A tagger which prepares collection of TextHighlightTag for all occurrences of a given search word. The class exposes a **UpdateSearchWord** method is used to determine the word which will be highlighted. +* **TextSearchUnderlineTagger**: A tagger which prepares collection of UnderlineTag for all occurrences of a given search word. The class exposes a **UpdateSearchWord** method is used to determine the word which will be underlined. +* **LineHighlightTagger**: A tagger which prepares a collection of TextHighlightTags for a collection of lines. The class exposes a HighlightLines method taking an IEnumerable and is used to determine the lines which will be highlighted. The tagger also provides a **HighlightMode** property of type LineHighlightMode which has the following possible values: + * **TextOnly**: Highlights only the text portion of the line. This is the default value. + * **LineStartToTextEnd**: Highlights from the beginning of the line to the end of the text portion of the line. + ## Register a Tagger From ec8a5260e91d080bfb096f934fc2549d85457db2 Mon Sep 17 00:00:00 2001 From: Dinko Krastev Date: Wed, 7 Aug 2024 14:45:07 +0300 Subject: [PATCH 2/2] Update overview.md --- .../features/taggers/overview.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/controls/syntax-editor/features/taggers/overview.md b/controls/syntax-editor/features/taggers/overview.md index 91b3d9b1d..60c8f91cf 100644 --- a/controls/syntax-editor/features/taggers/overview.md +++ b/controls/syntax-editor/features/taggers/overview.md @@ -22,19 +22,19 @@ The matched tags are then processed by the [UI layers]({%slug syntax-editor-feat **RadSyntaxEditor** comes with a number of predefined taggers and folding taggers: -* **CSharpTagger**: A tagger responsible for the syntax-highlighting in the C# programming language. -* **VisualBasicTagger**: A tagger responsible for the syntax-highlighting in the Visual Basic programming language. -* **JavaScriptTagger**: A tagger responsible for the syntax-highlighting in the JavaScript programming language. -* **XmlTagger**: A tagger responsible for the syntax-highlighting in the XML programming language. -* **SqlTagger**: A tagger responsible for the syntax-highlighting in the T-SQL (Transact-SQL) programming language. +* **CSharpTagger**: A tagger responsible for syntax highlighting in the C# programming language. +* **VisualBasicTagger**: A tagger responsible for syntax highlighting in the Visual Basic programming language. +* **JavaScriptTagger**: A tagger responsible for syntax highlighting in the JavaScript programming language. +* **XmlTagger**: A tagger responsible for syntax highlighting in the XML programming language. +* **SqlTagger**: A tagger responsible for syntax highlighting in the T-SQL (Transact-SQL) programming language. * **BracketFoldingTagger**: A tagger responsible for creating collapsible (folding) regions in the code. Can be used for the JavaScript language. * **CSharpFoldingTagger**: A tagger responsible for creating folding regions in C# code. * **VisualBasicFoldingTagger**: A tagger responsible for creating folding regions in Visual Basic code. -* **XmlFoldingTagger**: A tagger responsible for creating collapsible (folding) regions in XML, XAML and HTML code documents. -* **JavaScriptFoldingTagger**: A tagger class responsible for creating collapsible (folding) regions in JavaScript code document. -* **TextSearchHighlightTagger**: A tagger which prepares collection of TextHighlightTag for all occurrences of a given search word. The class exposes a **UpdateSearchWord** method is used to determine the word which will be highlighted. -* **TextSearchUnderlineTagger**: A tagger which prepares collection of UnderlineTag for all occurrences of a given search word. The class exposes a **UpdateSearchWord** method is used to determine the word which will be underlined. -* **LineHighlightTagger**: A tagger which prepares a collection of TextHighlightTags for a collection of lines. The class exposes a HighlightLines method taking an IEnumerable and is used to determine the lines which will be highlighted. The tagger also provides a **HighlightMode** property of type LineHighlightMode which has the following possible values: +* **XmlFoldingTagger**: A tagger responsible for creating collapsible (folding) regions in XML, XAML, and HTML code documents. +* **JavaScriptFoldingTagger**: A tagger class responsible for creating collapsible (folding) regions in JavaScript code documents. +* **TextSearchHighlightTagger**: A tagger that prepares a collection of TextHighlightTag for all occurrences of a given search word. The class exposes a **UpdateSearchWord** method used to determine the word that will be highlighted. +* **TextSearchUnderlineTagger**: A tagger that prepares a collection of UnderlineTag for all occurrences of a given search word. The class exposes a **UpdateSearchWord** method used to determine the word that will be underlined. +* **LineHighlightTagger**: A tagger that prepares a collection of TextHighlightTags for a collection of lines. The class exposes a HighlightLines method taking an IEnumerable and is used to determine the lines that will be highlighted. The tagger also provides a **HighlightMode** property of type LineHighlightMode which has the following possible values: * **TextOnly**: Highlights only the text portion of the line. This is the default value. * **LineStartToTextEnd**: Highlights from the beginning of the line to the end of the text portion of the line. @@ -71,7 +71,7 @@ RadSyntaxEditor1.TaggersRegistry.RegisterTagger(foldingTagger) >note As of R2 2021 **RadSyntaxEditor** offers **ShouldTaggersProcessEntireLines** property that indicates whether the entire line should be processed by the taggers. -# See Also +## See Also * [How to Achieve Underline Text in RadSyntaxEditor]({%slug underline-text-in-syntax-editor%})