简体   繁体   中英

How to associate .hl files to Clojure syntax highlighting in Light Table?

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

All you should need to do is this:

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

in your user.behavior file.

Source:

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

EDIT 5/1/15: The format of Light Table behavior files changed at some point. The following variation on the above worked for me:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM