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 15K
  • Win 5K
  • OS X 9K
  • Linux 2K
Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8
Windows 0 2 4 6 5 2 3 6 4 7 2 5 4 1 0 3 2 9 5 2 3 5 4 1 4 2 2 2 6 5 4 7 7 4 1 4 3 3 5 8 2 0 1 5 5 6
OS X 0 2 5 1 3 1 4 5 3 4 5 6 0 2 1 1 1 5 7 1 2 2 3 4 2 2 3 5 1 6 3 2 5 0 1 2 3 1 1 3 1 0 0 5 5 5
Linux 0 1 2 2 1 1 2 2 1 1 0 2 0 1 2 3 0 1 1 0 1 0 1 0 1 3 0 1 2 0 0 0 0 1 2 2 1 1 0 1 1 0 0 1 0 2

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.