I'd like to get Hoplon (http://hoplon.io/) code highlighted using Light Table.
Asked
Active
Viewed 956 times
1 Answers
10
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]}]]

Dave Yarwood
- 2,866
- 1
- 17
- 29

ClojureMostly
- 4,652
- 2
- 22
- 24
-
On my system the file is called "user.behaviors" and doing the suggested above has no effect :( – boxed Jul 13 '14 at 17:55
-
try default.behaviours under settings – donald Aug 17 '14 at 11:20
-
@boxed I had a similar issue when trying out the snippet. Did you copy and paste it in or type it in yourself? I ended up typing h1 "h-one" instead of hl "h-l" or "h-lima" – jeemar Nov 01 '14 at 01:23
-
@jeemar well, I was trying to get another extension than .hl enabled so that won't apply to me :P – boxed Nov 02 '14 at 16:40
-
@boxed Ah, I see. Well, hope you solved your problem! :) – jeemar Nov 03 '14 at 18:30
-
1copy and pasted. worked for me. needed to reopen the hoplon file i was viewing. – PPPaul Nov 18 '14 at 02:14
-
this solution is for the old format of lighttable settings. it would be nice to have the solution in the new format. – PPPaul Dec 05 '14 at 20:57
-
@PPPaul: I made an edit just now showing a translation to the current format. – Dave Yarwood May 01 '15 at 14:24