Open felipecrs opened 1 year ago
Would be great to have this.
Yes, yes, yes! My use case ould probably go vastly towards .gitlab-ci.yml
files which often contain bash scripts. Even if it was configurable only via .vscode/settings.json
, I'd take it just to speed up pipeline development.
@felipecrs Any updates?
@bdsoha, from my side no. :)
Somewhat related proposal: https://github.com/microsoft/vscode/issues/224581
Is your enhancement related to a problem? Please describe.
I have a bunch of YAML files that embeds XML, JSON, Bash Scripts, Dockerfiles, and so on. When opening them in VS Code, such inline strings are interpreted as plain strings, which makes it a little difficult to edit.
Describe the solution you would like
To support syntax highlight of other languages for multi-line strings block that has a special comment. For example:
Describe alternatives you have considered
Extract the file to its own window, make the changes and then copy it back to the YAML file. Having syntax highlight directly in the YAML file would be a huge time saver :).
Additional context
It looks like this can be implemented in vscode through something like this: https://github.com/Microsoft/vscode-extension-samples/tree/main/decorator-sample