【问题标题】:How to associate .hl files to Clojure syntax highlighting in Light Table?如何将 .hl 文件与 Light Table 中的 Clojure 语法高亮相关联?
【发布时间】:2014-03-14 14:53:45
【问题描述】:

我想使用 Light Table 突出显示 Hoplon (http://hoplon.io/) 代码。

【问题讨论】:

    标签: clojure clojurescript lighttable hoplon


    【解决方案1】:

    您只需要这样做:

     :files [(:lt.objs.files/file-types [{:exts [:hl],
                                          :mime "text/x-clojure",
                                          :name "hl",
                                          :tags [:editor.clj :editor.clojure]}])]
    

    在您的 user.behavior 文件中。

    来源:

    https://groups.google.com/forum/#!topic/light-table-discussion/LjlYu6K1sWk

    EDIT 5/1/15:Light Table 行为文件的格式在某些时候发生了变化。上面的以下变体对我有用:

     [:files :lt.objs.files/file-types [{:exts [:hl],
                                          :mime "text/x-clojure"
                                          :name "hl"
                                          :tags [:editor.clj :editor.clojure]}]]
    

    【讨论】:

    • 在我的系统上,该文件名为“user.behaviors”,执行上述建议无效:(
    • 在设置下尝试 default.behaviours
    • @boxed 我在尝试 sn-p 时遇到了类似的问题。你是复制粘贴还是自己输入的?我最终输入了 h1 "h-one" 而不是 hl "h-l" 或 "h-lima"
    • @jeemar 好吧,我试图获得另一个扩展名而不是 .hl 启用所以这不适用于我:P
    • 复制粘贴。为我工作。需要重新打开我正在查看的 hoplon 文件。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-05-01
    • 2011-04-20
    • 2012-09-01
    • 1970-01-01
    • 2015-11-20
    • 2017-11-15
    • 2016-01-17
    相关资源
    最近更新 更多