Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/CodeLens.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@

## Code Lens

### XML Features

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).

![CodeLens Bind](./images/Features/CodeLensBind.png)

### DTD features

Code lens is provided in `.dtd` files to show where elements defined in the DTD are referenced.
Expand Down
12 changes: 12 additions & 0 deletions docs/Features/XMLFeatures.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,18 @@ This also works for other portions of an XML document, such as attributes and th

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

## CodeLens

CodeLens is supported for `.xml` files for a number of different features.

### CodeLens 'Bind to grammar/schema...'

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).

![CodeLens Bind](../images/Features/CodeLensBind.png)

For more information on CodeLens capabilities, see [CodeLens](../CodeLens.md#code-lens).

## Custom Feature Implementation

You can implement your own feature with a [Java extension](../Extensions.md).
Binary file added docs/images/Features/CodeLensBind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.