Skip to content

Commit

Permalink
added snippet and generation demos
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Chen authored and datho7561 committed Jun 14, 2021
1 parent dd99f92 commit a2f4bf0
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/Features/XMLFeatures.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Using `/` in an opening tag will auto close the tag.

![Auto Close Tag Slash](../images/Features/AutoCloseTagSlashXML.gif)

## Linked Editing
## Auto Rename Tag

Linked editing is supported, allowing for simultaneous changes an opening and closing tag pair.

Expand Down Expand Up @@ -46,12 +46,28 @@ The `OUTLINE` dropdown under `EXPLORER` details the XML tags in the document and

![Symbol Outline XML](../images/Features/SymbolOutlineXML.gif)

## Snippet Generation

When starting a new XML document, `Ctrl` + `Space` lists different snippet options to set up the document.

![Generate XML Snippet](../images/Features/GenerateXMLSnippet.gif)

There are also a number of keywords that will be recognized as snippets and autocompleted. For example, typing `schema` will list schema related snippet options.

![Generate XML Schema Snippet](../images/Features/GenerateXMLSchemaSnippet.gif)

## Completion Support

### Basic completion

If an XML file is not associated to a bound grammar file, you can utilize XML completion which uses existing XML tag elements.

### Attribute value completion

For a XML tag attribute, there is autocompletion support for the attribute value. For example, for path completion, type `.` or `/`.

![Attribute Completion XML](../images/Features/AttributeCompletionXML.gif)

### Completion based on grammar

#### Completion based on XSD
Expand Down
6 changes: 6 additions & 0 deletions docs/Features/XSDFeatures.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ After defining a `Type` or `element`, selecting the `name` attribute will highli

![Highlight Occurrences XSD](../images/Features/HighlightOccurrenceXSD.gif)

### Change all type occurrences

To rename a `Type` definition and its associated `element` `type` attribute values, highlight the `name` attribute of the `Type` and press `F2` or use the dropdown to select `Rename Symbol`.

![Rename Type Reference XSD](../images/Features/RenameTypeReferenceXSD.gif)

## Syntax Validation

XSD syntax validation is enabled for any `.xsd` file.
Expand Down
Binary file added docs/images/Features/AttributeCompletionXML.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/Features/GenerateXMLSchemaSnippet.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/Features/GenerateXMLSnippet.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/Features/RenameTypeReferenceXSD.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a2f4bf0

Please sign in to comment.