Skip to content

Commit c0b010f

Browse files
angelozerrdatho7561
authored andcommitted
Codelens, completion, definition, documentLink, highlighting,
references, rename support in RNG file Signed-off-by: azerr <azerr@redhat.com>
1 parent 447d2ab commit c0b010f

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

docs/Features/RelaxNGFeatures.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,22 @@ You can associate your XML file with `RelaxNG grammar` (`file` or `URL`) using :
3131

3232
* for [RelaxNG XML syntax (*.rng files)](https://relaxng.org/tutorial-20011203.html), it provides the same support as XSD/DTD grammars (completion, hover, validation, etc).
3333

34-
![RelaxNG XML Syntax Overview](../images/RelaxNG/RelaxNGXMLSyntaxOverview.png)
35-
34+
![RelaxNG grammar XML Syntax Overview](../images/RelaxNG/RelaxNGXMLSyntaxOverview.png)
35+
3636
* for [RelaxNG Compact syntax (*.rnc files)](https://relaxng.org/compact-tutorial-20030326.html) it provides only syntax coloration.
3737

3838
![RelaxNG Compact Syntax Overview](../images/RelaxNG/RelaxNGCompactSyntaxOverview.png)
3939

40+
### RelaxNG grammar XML Syntax
41+
42+
[vscode-xml](https://github.com/redhat-developer/vscode-xml) provides support for reference between `define/@name` and `ref/@name` with codelens, definition, completion, highlighting, references, rename:
43+
44+
![RelaxNG XML Syntax Define support](../images/RelaxNG/RNGDefineSupport.gif)
45+
46+
It also provides support for `include/@href` and `externalRef/@href` attributes to navigate easily to the referenced `rng` grammar file:
47+
48+
![RelaxNG XML Syntax Href support](../images/RelaxNG/RNGHrefSupport.gif)
49+
4050
# Validation
4151

4252
XML validation based on RelaxNG (rng, rnc) is supported:
274 KB
Loading
67.9 KB
Loading

0 commit comments

Comments
 (0)