Provides syntax highlighting for HTML and Markdown files with Shopify Liquid and Jekyll template tags.
For working with Jekyll, this package also provides proper syntax highlighting for yaml front matter.
The easiest way to install is using Package Control. It's listed as Liquid
.
- Open
Command Palette
using ctrl+shift+P or menu itemTools → Command Palette...
- Choose
Package Control: Install Package
- Find
Liquid
and hit Enter
- Download appropriate Liquid-2.0.0-st4xxx.sublime-package for your Sublime Text build.
Thest4xxx
suffix denotes the least required ST build for the sublime-package to work. - Rename it to Liquid.sublime-package
- Copy it into Installed Packages directory
To find Installed Packages...
- call Menu > Preferences > Browse Packages..
- Navigate to parent folder
To enable the syntax, select Liquid > HTML (Liquid)
or Liquid > Markdown (Liquid)
from syntax selection menu or via Command Palette.
To always open your templates with this syntax, use the Open all with current extension as ...
option, and select the proper Liquid syntax.
Liquid extends Sublime Text's HTML, Markdown, CSS and JavaScript, syntax definitions.
If Liquid syntax highlighting doesn't work and console displays syntax errors,
- check if required bundled packages are enabled.
- remove any out-dated syntax override.
- Open
Command Palette
using ctrl+shift+P or menu itemTools → Command Palette...
- Choose
Package Control: Enable Packages
- Find
CSS
and hit Enter - Repeat the steps for
JavaScript
,HTML
andMarkdown
- call Menu > Preferences > Browse Packages..
- Look for CSS, HTML, JavaScript, Markdown folder
- Remove them or at least delete any syntax definition in them