Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blaylockbk/vscode-met-syntax
Syntax highlighting for Model Evaluation Tools (MET) config files in VS Code
https://github.com/blaylockbk/vscode-met-syntax
met metplus syntax-highlighter syntax-highlighting vscode vscode-extension
Last synced: about 1 month ago
JSON representation
Syntax highlighting for Model Evaluation Tools (MET) config files in VS Code
- Host: GitHub
- URL: https://github.com/blaylockbk/vscode-met-syntax
- Owner: blaylockbk
- License: mit
- Created: 2021-11-04T23:02:29.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-24T23:34:13.000Z (over 1 year ago)
- Last Synced: 2024-03-15T18:14:59.680Z (10 months ago)
- Topics: met, metplus, syntax-highlighter, syntax-highlighting, vscode, vscode-extension
- Homepage: https://marketplace.visualstudio.com/items?itemName=brian-blaylock.met-syntax
- Size: 5.45 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
> My first ever VS Code extension 😁 inspired by [vscode-cylc](https://github.com/cylc/vscode-cylc), [mplstyle](https://github.com/yy0931/vscode-mplstyle), and [magic-python](https://github.com/MagicStack/MagicPython).
> This is not an extension developed by [DTC](https://dtcenter.org/community-code/model-evaluation-tools-met). I'm just a MET user.# About
**MET syntax** is a VS Code extension for basic syntax highlighting of [Model Evaluation Tools](https://dtcenter.org/community-code/model-evaluation-tools-met) (MET) [configuration files](https://met.readthedocs.io/en/latest/Users_Guide/config_options.html).
Syntax highlighting can help you visually understand MET configuration file structure and help you catch errors. The following are highlighted:
- comments
- strings
- environment variables (i.e., `${ENV_VAR}`)
- numbers
- keywords (TRUE, FALSE, NONE, UNION, NA, SQUARE, etc.).Highlighting is applied to files with the extension `.metconfig` and to files with the following filename patterns:
- `*PointStatConfig*`
- `*GridStatConfig*`
- `*EnsembleStatConfig*`
- `*MODEAnalysisConfig*`
- `*PB2NCConfig*`
- `*STATAnalysisConfig*`
- `*WaveletStatConfig*`For any other files, you should manually set the file association in your settings. For example,
```json
"files.associations": {
"myMETConfigFile": "metconfig",
}
```## Install
Install from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=brian-blaylock.met-syntax).
Or, you can clone this repository into your `~/.vscode/extensions/` folder.
## Potential Improvements
This is my first VS Code extension. I threw this together quickly after watching a tutorial, but there is potential with this extension to do so much more! If you want to make improvements, your pull requests are welcomed.
- snippets
- code validation
- code completion
- highlighting for METplus wrapper files---
**Enjoy!**
\- Brian Blaylock