Overview
This Visual Studio Code extension provides syntax highlighting for NFormat files and other custom file types related to NFormat. It supports various elements like keys, values, comments, and punctuation, making your NFormat files more readable and visually structured.
Features
- Syntax highlighting for NFormat files.
- Highlighting for keys, values, comments, and punctuation marks.
- Supports multiple file extensions such as
.nformat
, .nconfig
, and more.
- Customizable grammar and syntax highlighting to suit your project needs.
Installation
To install this extension:
- Open VSCode.
- Go to the Extensions tab (or press
Ctrl+Shift+X
).
- Search for NFormat Syntax Highlighting.
- Click Install.
Alternatively, you can install it manually by downloading the .vsix
file and installing it via the VSCode command palette.
Supported File Extensions
This extension supports the following file extensions:
.nformat
.nconfig
.nscene
.nentity
You can configure which files should use this syntax highlighting by specifying the extensions in the package.json
.
Usage
Once the extension is installed, any file with the .nformat
, .config
, or your custom extension will automatically get syntax highlighting. The following elements will be highlighted:
- Keywords:
name
, id
, entities
, position
, stats
, etc.
- Values: Strings, numbers, booleans, etc.
- Comments: Lines starting with
-#
will be treated as comments.
- Punctuation:
::
(key-value separator) and ->
(block separator).