scriban / scriban-vscode

Scriban - Syntax Coloring Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=xoofx.scriban
BSD 2-Clause "Simplified" License
11 stars 2 forks source link

File extensions #5

Open orcun opened 5 years ago

orcun commented 5 years ago

File extensions are very limited. Here is my suggestion, but I'm not sure if vscode supports this. I'll give it a shot and update this issue.

Plain scripts:

This might help extending file extension support.

xoofx commented 3 years ago

Sorry, I was not getting notifications for this repo. A reboot of your PR #6 is welcome

AdamCoulterOz commented 2 years ago

I'm not familiar with vscode language extensions, is there a way for it to delegate the internal format ... i.e. for mytemplate.xyz.scriban, the xyz part to the XYZ language extension, and then render the scriban syntax as an addition?

https://superuser.com/questions/1537646/syntax-highlighting-for-embedded-languages-in-vs-code https://stackoverflow.com/questions/68914467/how-to-syntax-highlight-nested-items-in-vscode-tmlanguage-json

Looks like nested scopes is a thing?

https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide