https://github.com/antlr/jetbrains-plugin-st4
An intellij/jetbrains plugin for StringTemplate .st and .stg files
https://github.com/antlr/jetbrains-plugin-st4
Last synced: about 2 months ago
JSON representation
An intellij/jetbrains plugin for StringTemplate .st and .stg files
- Host: GitHub
- URL: https://github.com/antlr/jetbrains-plugin-st4
- Owner: antlr
- License: bsd-2-clause
- Created: 2015-11-09T17:27:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-11-07T20:50:40.000Z (over 1 year ago)
- Last Synced: 2025-04-04T19:08:35.650Z (2 months ago)
- Language: Java
- Size: 2.49 MB
- Stars: 24
- Watchers: 5
- Forks: 7
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IntelliJ Plugin for StringTemplate v4
[](https://github.com/antlr/jetbrains-plugin-st4/actions) [](https://plugins.jetbrains.com/plugin/8041-stringtemplate-v4-plugin) A plugin that adds support for StringTemplate v4 to [IntelliJ](https://www.jetbrains.com/idea/)-based IDEs (version 15.x and later).
It understands `.stg` and `.st` files. For example,
See the [plugin page](https://plugins.jetbrains.com/plugin/8041?pr=) for more information.
# Highlighting the target language
You can configure `Template Data Languages` to make the editor highlight the content around StringTemplate tags.
For example, if your template is used to generate Java code, you can go to `File | Settings | Languages & Frameworks | Template Data Languages`
and configure which language to highlight:
The editor will now highlight Java parts around ST tags:
# Building and contributing
To build the plugin:
`gradlew buildPlugin`To run the plugin:
`gradlew runIde`When submitting a pull request, make sure your name is in the `contributors.txt` file.