A Visual Studio Code extension to enable some syntax highlighting when working with AppConfig repos.
- Syntax highlighting for AppConfig environment configuration files
*.set.xpath.txt*.tokens.properties*.endpoints
- Supports endpoint tokens (
|%|...|%|) (cloud-only) - Adds region support
- Comment highlighting
- Keyword highlighting
true,false,Transport,null,None,ON,YES, etc.
- IP Address Highlighting
- Path highlighting
- For rooted Windows and UNC paths
- Automatic word wrap for endpoints, tokens, and secret files
- Default file encoding
UTF8 - Default line ending to Unix (
\n) - Auto-removes trailing whitespace
- Clone this repo
- Copy it to your VSCode extensions folder
The default location of the extensions folder is:
C:\Users\%USERNAME%\.vscode\extensions
So, if your username was treyc then you would copy this folder to:
C:\Users\treyc\.vscode\extensions
"[xpathv2]": {
"files.encoding": "utf8",
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"diffEditor.ignoreTrimWhitespace": false,
"editor.wordWrap": "off",
"editor.quickSuggestions": {
"comments": "off",
"strings": "on",
"other": "on"
}
}- None
This folder contains all of the files necessary for the XPath extension.
package.json- this is the manifest file in which you declare your language support and define the location of the grammar file that has been copied into your extension.syntaxes/xpath.tmLanguage.json- this is the Text mate grammar file that is used for tokenization.language-configuration.json- this is the language configuration, defining the tokens that are used for comments and brackets.
- Make sure the language configuration settings in
language-configuration.jsonare accurate. - Press
F5to open a new window with your extension loaded. - Create a new file with a file name suffix matching your language.
- Verify that syntax highlighting works and that the language configuration settings are working.
- You can relaunch the extension from the debug toolbar after making changes to the files listed above.
- You can also reload (
Ctrl+RorCmd+Ron Mac) the VS Code window with your extension to load your changes.
- To add features such as IntelliSense, hovers and validators check out the VS Code extenders documentation at https://code.visualstudio.com/docs
- To start using your extension with Visual Studio Code copy it into the
<user home>/.vscode/extensionsfolder and restart Code. - To share your extension with the world, read on https://code.visualstudio.com/docs about publishing an extension.
Initial release.
Huge rewrite. Added support for secrets, multi-token values in xpath, key-value pair highlighting, extended keywords, added path highlighting, constants highlighting, and more.
