Mechanic Liquid Support for VS CodeThis Visual Studio Code extension provides unofficial support for syntax highlighting and code snippets for the Mechanic app on the Shopify platform. The extension is currently a pre-release preview, so bugs should be expected. Mechanic-flavored Liquid is implemented as its own language, “Mechanic Liquid,” and so it should play nice with other liquid extensions out there, including [Liquid by Νίκος], [Liquid Languages Support by Neil Ding], and [Shopify Liquid Template Snippets by Franky Lau]. Enabling Mechanic-Liquid Language SupportTo enable syntax highlighting and snippet support, simply change the language of your document to SnippetsTo use a snippet, type part of a snippet, press Color ThemingThe extension creates background highlighting for several types of objects, including action tags, shopify filter queries, comments, log tags, and error tags. You can customize these colors by adding the following to your
The colors must be in 8-digit hex format (#ffffffff) with a low transparency, so that other VS Code highlighting can function correctly. Supporting the ExtensionThis extension is in active development inside my free time. I decided to write it to make life easier when coding my own Mechanic tasks. If you feel you’ve benefitted from using this extension, how about buying me a coffee? 😄☕️🙏 Bug Reports / Issues / ContributingBug reports and issues can be reported on the extension’s GitHub Issue Page. You're also welcome to make suggestions for improvements to the extension. In the meantime, check out the amazing Mechanic app and the ever-welcoming Mechanic Slack community! InstallationPublished to the Visual Studio Code Marketplace. Published simultaneously to the Open VSX Directory for use with Theia IDE. |