panoply / vscode-liquid

💧Liquid language support for VS Code
https://marketplace.visualstudio.com/items?itemName=sissel.shopify-liquid
Other
171 stars 23 forks source link

Support Liquid in HTML files with suffix '.html' #190

Closed ZhiZe-ZG closed 1 month ago

ZhiZe-ZG commented 1 month ago

Jekyll support using liquid in HTML. But the suffix of HTML file should be '.html'. This won't be recognized by the vscode-liquid.

panoply commented 1 month ago

Use file associations:

{
    "files.associations": {
        "*.html": "liquid"
    }
}
ZhiZe-ZG commented 1 month ago

@panoply Thanks it works. However, please consider adding this functionality to the plugin (at least as an optional feature). Thanks again.

panoply commented 1 month ago

Hey,

In previous versions this was a default, but it was problematic for developers. The preferred approach here is to use file associations.

Happy it helped!