Light Table 0.7.2: Proper format for adding *.cljs.hl (Hoplon) Syntax Support

68 views
Skip to first unread message

Calvin Mitchell

unread,
Mar 25, 2015, 12:39:02 PM3/25/15
to light-table...@googlegroups.com
After scouring the W3 the youngest data for adding new file extensions is a couple of years old; and since that time it appears that the format for adding new file extensions has changed and the documentation has NOT been updated...

...could someone please point us all in the right direction on adding support for new file extensions (especially Hoplon's *.cljs.hl format) in Light Table?

Thank you!

Magnus Rundberget

unread,
Mar 25, 2015, 1:02:18 PM3/25/15
to light-table...@googlegroups.com
This is how I added support for asciidoc syntax in my AsciiLight plugin (https://github.com/rundis/AsciiLight)


; *.behaviors

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

cheers
Magnus

Calvin Mitchell

unread,
Mar 25, 2015, 2:10:14 PM3/25/15
to light-table...@googlegroups.com
Thank you for your timely feedback!

--
You received this message because you are subscribed to a topic in the Google Groups "Light Table Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/light-table-discussion/bm9jY_3sDpQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to light-table-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Calvin Mitchell

unread,
Mar 25, 2015, 2:31:43 PM3/25/15
to light-table...@googlegroups.com
This is what worked for me:

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

Bon Jour!

Magnus Rundberget

unread,
Mar 25, 2015, 2:59:42 PM3/25/15
to light-table...@googlegroups.com
good stuff !

- bonsoir :)
Reply all
Reply to author
Forward
0 new messages