The Polscript extension provides syntax highlighting for the Polscript language within Visual Studio Code. It's an actively developed extension that's both functional and designed to enhance your programming experience.
For the best results, we recommend using specific themes that complement the syntax highlighting provided by this extension. Below are examples of the Polscript extension used with the Dark+ (default dark)
theme. Compatibility and visual appeal have also been confirmed with themes such as Monokai Dark Soda
and Darktooth
.
- Overhauled syntax highlighting to align with industry best practices, courtesy of insights from GPT-4.
- Enhanced .cfg file recognition.
- Refined highlighting for Arrays, Structs, and Dictionaries for better readability.
Execute ext install polscript
within the command palette (Ctrl+P
) to install quickly.
Your contributions are highly appreciated! We welcome contributions of all forms and sizes.
For manual installation:
- Clone the repository into your
<user home>/.vscode/extensions
directory. - Restart Visual Studio Code to activate the extension.
The repository is organized as follows:
package.json
- Declares language support and specifies the grammar file location.syntaxes/polscript.tmLanguage
- The TextMate grammar file responsible for tokenization.polscript.configuration.json
- Contains language configurations for tokens related to comments and brackets.
To contribute changes:
- Make your modifications to the files mentioned above.
- Launch the extension using the debug toolbar in Visual Studio Code to test your changes.
- To apply and review your changes, reload the Visual Studio Code window with the extension (
Ctrl+R
orCmd+R
for Mac).
For adding advanced language features like IntelliSense, hover information, or validators, please consult the VS Code Extension API documentation.