Skip to content

Commit 7ac59a8

Browse files
author
Alexander Xu Chen
authored
added CodeLens support to XMLFeatures.md (#566)
1 parent 943a352 commit 7ac59a8

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

docs/CodeLens.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11

22
## Code Lens
33

4+
### XML Features
5+
6+
CodeLens provides grammar binding for unbound XML documents, appearing above the root element, which will trigger the [XML Binding Wizard](BindingWithGrammar.md#the-xml-binding-wizard).
7+
8+
![CodeLens Bind](./images/Features/CodeLensBind.png)
9+
410
### DTD features
511

612
Code lens is provided in `.dtd` files to show where elements defined in the DTD are referenced.

docs/Features/XMLFeatures.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,18 @@ This also works for other portions of an XML document, such as attributes and th
144144

145145
![Selection Range](../images/Features/SelectionRange.gif)
146146

147+
## CodeLens
148+
149+
CodeLens is supported for `.xml` files for a number of different features.
150+
151+
### CodeLens 'Bind to grammar/schema...'
152+
153+
If the current XML document is not bound to an existing grammar/schema, a CodeLens will appear above the root element, which will trigger the [XML Binding Wizard](../BindingWithGrammar.md#the-xml-binding-wizard).
154+
155+
![CodeLens Bind](../images/Features/CodeLensBind.png)
156+
157+
For more information on CodeLens capabilities, see [CodeLens](../CodeLens.md#code-lens).
158+
147159
## Custom Feature Implementation
148160

149161
You can implement your own feature with a [Java extension](../Extensions.md).

docs/images/Features/CodeLensBind.png

5.32 KB
Loading

0 commit comments

Comments
 (0)