ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Siteleaf Liquid Syntax

by siteleaf ST2/ST3

Liquid syntax mode for Sublime Text

Details

Installs

  • Total 17K
  • Win 6K
  • OS X 9K
  • Linux 2K
Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22
Windows 0 1 5 1 0 2 1 2 2 2 3 2 0 2 1 2 0 4 2 2 0 2 3 4 8 2 2 0 1 3 4 2 3 3 2 3 6 2 3 2 1 1 5 3 4 1
OS X 0 1 5 4 2 1 0 0 5 0 2 2 0 1 1 3 2 2 0 2 2 2 2 1 5 2 1 2 2 1 3 0 0 2 2 0 1 4 3 3 1 1 2 0 9 5
Linux 0 0 0 0 1 0 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 1 1 1 3 2 2 1 1 1 0 0 0 0 1 0 0 2 1 0

Readme

Source
raw.​githubusercontent.​com

Siteleaf Liquid support for Sublime Text

This is a fork of the shopify-liquid syntax, which was based off of the Djaniero package for Django.

Installation

Suggested: Install using Package Control. Search for “Siteleaf Liquid Syntax”.

Or install manually:

  1. Clone this repo
  2. Put the contents of this repo directly inside:
  • OS X: ~/Library/Application Support/Sublime Text 3/Packages/
  • Windows: %APPDATA%/Sublime Text 3/Packages/
  • Linux: ~/.config/sublime-text-3/Packages

After installing:

You might need to switch to the syntax mode. (shift + cmd + p, search for Liquid, “Set Syntax: HTML (Liquid)”)

Autocomplete

To show the autocomplete suggestions, your cursor must be within a tag markup or output marker wrapper ({% %} or {{ }})

Then press ctrl + spacebar, or add the following to your user settings file:

"auto_complete_selector": "source - comment, text.html.liquid punctuation.output.liquid, text.html.liquid punctuation.tag.liquid"

Snippets

Some handy snippets:

IF statement

if + tab >>>

{% if $1 %}
  $2
{% endif %}

Tag markup

% + tab >>>

{% $1 %}

For a full list, check out the “Snippets” folder.