This extension adds basic syntax highlighting and essential snippets for WebX files.
WebX is a simple declarative language for creating RESTful web services and dynamic application backends. Read more about WebX at https://github.com/webx-net/webx.
This extension includes the following features:
- Syntax highlighting for WebX files
- Emedded TypeScript and TSX
- Snippets for WebX files
Support for syntax highlighting of all WebX files. This language is a superset of typescriptreact
.
Currently, the syntax highlighting grammar is limited to one route declaration per line. This is due to the fact that the grammar is running using TextMate, which does not support multiline rules.
The following snippets are available for WebX files:
global
- Global TypeScript declarationsmodel
- Model definitionshandler
- Handler definitionslocation
- Location scopesget
/post
/etc.
- Route declaration
Move to a Language server protocol (LSP) implementation for robustness and better semantic support such as code completion, hover-info, and advanced syntax highlighting.
Initial release of the WebX syntax highlighting and snippets extension for Visual Studio Code. This extension is still in development and may contain bugs. Please report any issues to the GitHub repository.
Enjoy!