This extension provides syntax highlighting for Apptainer/Singularity definition files. Improved syntax highlighting for sections that include shell scripts is provided by Visual Studio Code's built-in shell script syntax highlighting.
Preview
Known Issues
Template strings are not highlighted correctly if they appear on the same line as a header or a section name.
Template strings are not highlighted within shell scripts.
Acknowledgements
Apptainer: Test files under test/from-apptainer are copied from the Apptainer repository. The extension icon is based on the Apptainer logo.
mo by Tests Always Included: A mustache templating engine in Bash. Used here to replace template strings with values. Included under template/mo.
yq by Mike Farah: A YAML processor in Go. Used here to transform language definitions from YAML to JSON.
See also
vscode-singularity by Onno Valkering also provides syntax highlighting for Singularity definition files and was used as a reference while developing this extension.