ctrl+shift+p filters: :st2 :st3 :win :osx :linux
浏览

液体

SublimeText ST3

Sublime Text 的 Shopify Liquid 语法

详细信息

安装

  • 总计 45K
  • Win 14K
  • Mac 26K
  • Linux 4K
8月6日 8月5日 8月4日 8月3日 8月2日 8月1日 7月31日 7月30日 7月29日 7月28日 7月27日 7月26日 7月25日 7月24日 7月23日 7月22日 7月21日 7月20日 7月19日 7月18日 7月17日 7月16日 7月15日 7月14日 7月13日 7月12日 7月11日 7月10日 7月9日 7月8日 7月7日 7月6日 7月5日 7月4日 7月3日 7月2日 7月1日 6月30日 6月29日 6月28日 6月27日 6月26日 6月25日 6月24日 6月23日 6月22日
Windows 0 1 0 0 0 2 3 2 0 0 1 4 2 4 1 2 2 1 1 4 1 2 3 3 0 2 0 4 6 3 1 0 0 1 4 0 2 1 1 0 3 4 1 2 0 2
Mac 3 1 0 0 1 3 5 3 1 0 1 0 6 0 5 6 3 0 4 6 1 4 3 1 0 3 1 1 2 5 0 1 1 2 3 2 3 1 0 0 1 4 3 2 1 1
Linux 0 0 0 1 1 1 1 1 2 0 0 2 0 0 0 0 0 0 1 0 0 1 0 0 0 1 0 1 0 1 1 0 0 0 0 1 1 0 1 2 1 0 1 0 1 0
02468108月6日8月3日7月31日7月28日7月25日7月22日7月19日7月16日7月13日7月10日7月7日7月4日7月1日6月28日6月25日6月22日8月6日 Linux: 0 Mac: 3 Windows: 08月5日 Linux: 0 Mac: 1 Windows: 18月4日 Linux: 0 Mac: 0 Windows: 08月3日 Linux: 1 Mac: 0 Windows: 08月2日 Linux: 1 Mac: 1 Windows: 08月1日 Linux: 1 Mac: 3 Windows: 27月31日 Linux: 1 Mac: 5 Windows: 37月30日 Linux: 1 Mac: 3 Windows: 27月29日 Linux: 2 Mac: 1 Windows: 07月28日 Linux: 0 Mac: 0 Windows: 07月27日 Linux: 0 Mac: 1 Windows: 17月26日 Linux: 2 Mac: 0 Windows: 47月25日 Linux: 0 Mac: 6 Windows: 27月24日 Linux: 0 Mac: 0 Windows: 47月23日 Linux: 0 Mac: 5 Windows: 17月22日 Linux: 0 Mac: 6 Windows: 27月21日 Linux: 0 Mac: 3 Windows: 27月20日 Linux: 0 Mac: 0 Windows: 17月19日 Linux: 1 Mac: 4 Windows: 17月18日 Linux: 0 Mac: 6 Windows: 47月17日 Linux: 0 Mac: 1 Windows: 17月16日 Linux: 1 Mac: 4 Windows: 27月15日 Linux: 0 Mac: 3 Windows: 37月14日 Linux: 0 Mac: 1 Windows: 37月13日 Linux: 0 Mac: 0 Windows: 07月12日 Linux: 1 Mac: 3 Windows: 27月11日 Linux: 0 Mac: 1 Windows: 07月10日 Linux: 1 Mac: 1 Windows: 47月9日 Linux: 0 Mac: 2 Windows: 67月8日 Linux: 1 Mac: 5 Windows: 37月7日 Linux: 1 Mac: 0 Windows: 17月6日 Linux: 0 Mac: 1 Windows: 07月5日 Linux: 0 Mac: 1 Windows: 07月4日 Linux: 0 Mac: 2 Windows: 17月3日 Linux: 0 Mac: 3 Windows: 47月2日 Linux: 1 Mac: 2 Windows: 07月1日 Linux: 1 Mac: 3 Windows: 26月30日 Linux: 0 Mac: 1 Windows: 16月29日 Linux: 1 Mac: 0 Windows: 16月28日 Linux: 2 Mac: 0 Windows: 06月27日 Linux: 1 Mac: 1 Windows: 36月26日 Linux: 0 Mac: 4 Windows: 46月25日 Linux: 1 Mac: 3 Windows: 16月24日 Linux: 0 Mac: 2 Windows: 26月23日 Linux: 1 Mac: 1 Windows: 06月22日 Linux: 0 Mac: 1 Windows: 28月6日 Linux: 0 Mac: 3 Windows: 08月5日 Linux: 0 Mac: 1 Windows: 18月4日 Linux: 0 Mac: 0 Windows: 08月3日 Linux: 1 Mac: 0 Windows: 08月2日 Linux: 1 Mac: 1 Windows: 08月1日 Linux: 1 Mac: 3 Windows: 27月31日 Linux: 1 Mac: 5 Windows: 37月30日 Linux: 1 Mac: 3 Windows: 27月29日 Linux: 2 Mac: 1 Windows: 07月28日 Linux: 0 Mac: 0 Windows: 07月27日 Linux: 0 Mac: 1 Windows: 17月26日 Linux: 2 Mac: 0 Windows: 47月25日 Linux: 0 Mac: 6 Windows: 27月24日 Linux: 0 Mac: 0 Windows: 47月23日 Linux: 0 Mac: 5 Windows: 17月22日 Linux: 0 Mac: 6 Windows: 27月21日 Linux: 0 Mac: 3 Windows: 27月20日 Linux: 0 Mac: 0 Windows: 17月19日 Linux: 1 Mac: 4 Windows: 17月18日 Linux: 0 Mac: 6 Windows: 47月17日 Linux: 0 Mac: 1 Windows: 17月16日 Linux: 1 Mac: 4 Windows: 27月15日 Linux: 0 Mac: 3 Windows: 37月14日 Linux: 0 Mac: 1 Windows: 37月13日 Linux: 0 Mac: 0 Windows: 07月12日 Linux: 1 Mac: 3 Windows: 27月11日 Linux: 0 Mac: 1 Windows: 07月10日 Linux: 1 Mac: 1 Windows: 47月9日 Linux: 0 Mac: 2 Windows: 67月8日 Linux: 1 Mac: 5 Windows: 37月7日 Linux: 1 Mac: 0 Windows: 17月6日 Linux: 0 Mac: 1 Windows: 07月5日 Linux: 0 Mac: 1 Windows: 07月4日 Linux: 0 Mac: 2 Windows: 17月3日 Linux: 0 Mac: 3 Windows: 47月2日 Linux: 1 Mac: 2 Windows: 07月1日 Linux: 1 Mac: 3 Windows: 26月30日 Linux: 0 Mac: 1 Windows: 16月29日 Linux: 1 Mac: 0 Windows: 16月28日 Linux: 2 Mac: 0 Windows: 06月27日 Linux: 1 Mac: 1 Windows: 36月26日 Linux: 0 Mac: 4 Windows: 46月25日 Linux: 1 Mac: 3 Windows: 16月24日 Linux: 0 Mac: 2 Windows: 26月23日 Linux: 1 Mac: 1 Windows: 06月22日 Linux: 0 Mac: 1 Windows: 28月6日 Linux: 0 Mac: 3 Windows: 08月5日 Linux: 0 Mac: 1 Windows: 18月4日 Linux: 0 Mac: 0 Windows: 08月3日 Linux: 1 Mac: 0 Windows: 08月2日 Linux: 1 Mac: 1 Windows: 08月1日 Linux: 1 Mac: 3 Windows: 27月31日 Linux: 1 Mac: 5 Windows: 37月30日 Linux: 1 Mac: 3 Windows: 27月29日 Linux: 2 Mac: 1 Windows: 07月28日 Linux: 0 Mac: 0 Windows: 07月27日 Linux: 0 Mac: 1 Windows: 17月26日 Linux: 2 Mac: 0 Windows: 47月25日 Linux: 0 Mac: 6 Windows: 27月24日 Linux: 0 Mac: 0 Windows: 47月23日 Linux: 0 Mac: 5 Windows: 17月22日 Linux: 0 Mac: 6 Windows: 27月21日 Linux: 0 Mac: 3 Windows: 27月20日 Linux: 0 Mac: 0 Windows: 17月19日 Linux: 1 Mac: 4 Windows: 17月18日 Linux: 0 Mac: 6 Windows: 47月17日 Linux: 0 Mac: 1 Windows: 17月16日 Linux: 1 Mac: 4 Windows: 27月15日 Linux: 0 Mac: 3 Windows: 37月14日 Linux: 0 Mac: 1 Windows: 37月13日 Linux: 0 Mac: 0 Windows: 07月12日 Linux: 1 Mac: 3 Windows: 27月11日 Linux: 0 Mac: 1 Windows: 07月10日 Linux: 1 Mac: 1 Windows: 47月9日 Linux: 0 Mac: 2 Windows: 67月8日 Linux: 1 Mac: 5 Windows: 37月7日 Linux: 1 Mac: 0 Windows: 17月6日 Linux: 0 Mac: 1 Windows: 07月5日 Linux: 0 Mac: 1 Windows: 07月4日 Linux: 0 Mac: 2 Windows: 17月3日 Linux: 0 Mac: 3 Windows: 47月2日 Linux: 1 Mac: 2 Windows: 07月1日 Linux: 1 Mac: 3 Windows: 26月30日 Linux: 0 Mac: 1 Windows: 16月29日 Linux: 1 Mac: 0 Windows: 16月28日 Linux: 2 Mac: 0 Windows: 06月27日 Linux: 1 Mac: 1 Windows: 36月26日 Linux: 0 Mac: 4 Windows: 46月25日 Linux: 1 Mac: 3 Windows: 16月24日 Linux: 0 Mac: 2 Windows: 26月23日 Linux: 1 Mac: 1 Windows: 06月22日 Linux: 0 Mac: 1 Windows: 2

Readme

源代码
raw.​githubusercontent.​com

Sublime Text 的 Liquid/Jekyll 语法

为具有 Shopify LiquidJekyll 模板标签的 HTML 和 Markdown 文件提供语法高亮。

对于使用 Jekyll,此软件包还提供了对 yaml front matter 的适当语法高亮。

安装

软件包控制

最简单的方法是使用 软件包控制。它被列为准 Liquid

  1. 使用快捷键 ctrl+shift+P 或菜单项 工具 → 命令面板... 打开 命令面板
  2. 选择 软件包控制:安装软件包
  3. 找到 Liquid 并按 Enter

手动安装

  1. 下载适用于您的 Sublime Text build 的相应 Liquid-2.0.0-st4xxx.sublime-package
    st4xxx 后缀表示 sublime-package 工作所需的最低 Sublime Text build 版本。
  2. 将其重命名为 Liquid.sublime-package
  3. 将其复制到 已安装软件包 目录中

要找到 已安装软件包

  1. 请调用 菜单 > 偏好设置 > 浏览软件包..
  2. 导航到父文件夹

用法

要从语法选择菜单或通过命令面板选择语法,选择 Liquid > HTML (Liquid)Liquid > Markdown (Liquid)

要始终使用此语法打开模板,请使用 打开所有具有当前扩展名为 ... 选项,并选择正确的 Liquid 语法。

故障排除

Liquid 扩展了 Sublime Text 的 HTML、Markdown、CSS 和 JavaScript 语法定义。

如果 Liquid 语法高亮不起作用且控制台显示语法错误,

  1. 请检查是否启用了所需的捆绑包。
  2. 删除任何过时的语法覆盖。

启用捆绑包

  1. 使用快捷键 ctrl+shift+P 或菜单项 工具 → 命令面板... 打开 命令面板
  2. 选择 软件包控制:启用软件包
  3. 找到 CSS 并按 Enter
  4. 重复对 JavaScriptHTMLMarkdown 进行此操作

删除覆盖

  1. 请调用 菜单 > 偏好设置 > 浏览软件包..
  2. 查找 CSSHTMLJavaScriptMarkdown 文件夹
  3. 删除它们或至少删除它们中的任何语法定义