Semantic Highlighting

334 views
Skip to first unread message

Bryan Lott

unread,
Jan 29, 2014, 11:31:33 AM1/29/14
to light-table...@googlegroups.com
Just curious if anyone's working on a plugin to switch LT from syntax highlighting to semantic highlighting, ala https://medium.com/p/3a6db2743a1e/ ?

It's an interesting concept and I'd love to see how it applies to the concept of LT "making coding better".

Bryan

Kyle Cordes

unread,
Jan 29, 2014, 7:59:15 PM1/29/14
to light-table...@googlegroups.com
On Wednesday, January 29, 2014 at 9:31 AM, Bryan Lott wrote:
> Just curious if anyone's working on a plugin to switch LT from syntax highlighting to semantic highlighting, ala https://medium.com/p/3a6db2743a1e/ ?
>
> It's an interesting concept and I'd love to see how it applies to the concept of LT "making coding better".
>


I would really like this.


--
Kyle Cordes
http://kylecordes.com



Chris Granger

unread,
Jan 29, 2014, 8:00:55 PM1/29/14
to light-table...@googlegroups.com
Seems like a neat idea, I wouldn't do it alphabetically though, you really want things that are more similar to be more disparate in color to be able to more easily tell them apart.

Cheers,
Chris.





--
You received this message because you are subscribed to the Google Groups "Light Table Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to light-table-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Beau Fabry

unread,
Jan 29, 2014, 8:05:12 PM1/29/14
to light-table...@googlegroups.com
Yeah I thought the same while reading that. Other than that it sounds like a very awesome idea. Include the namespace for functions and I'll be able to visually pick up that I've typed object/->cm-ed instead of editor/->cm-ed again :-)

Cheers,
Chris.


To unsubscribe from this group and stop receiving emails from it, send an email to light-table-discussion+unsub...@googlegroups.com.

Bryan Lott

unread,
Jan 30, 2014, 9:18:30 AM1/30/14
to light-table...@googlegroups.com
I read somewhere else that a hash function would be a good way of differentiating the colors (and would make words that are very similar or misspelled stand out from one another).

So, that being said, I have about 3 weeks of Clojure experience and maybe a month and a half of LT experience (none of which is in plugin development).  If someone else wants to take this and run with it, more power to 'em and I'll help out where I can.  Otherwise, I'll start poking around and see what I can do with it.

Any helpful hints about where to start with changing how LT colorizes text?

Bryan

Matt Mower

unread,
Jan 30, 2014, 11:31:29 AM1/30/14
to light-table...@googlegroups.com
Wow, that is very different and looks exceptionally useful.

A shiny new donkey for whomever develops such a plugin!

Igor Korobov

unread,
Jan 30, 2014, 2:31:06 PM1/30/14
to light-table...@googlegroups.com
I'm far from expert either, but what I gather from reading the
code makes me pessimistic about the idea. Light Table delegates
most of its editing functionality to CodeMirror, including
syntax highlighting, so it looks like you will have to
implement semantic highlighting in CodeMirror instead of Light
Table. I will be glad if Chris says I'm wrong :-)

The problem of semantic analysis looks daunting as well, but I
don't know your background, maybe it's easy for you.

Chris Granger

unread,
Jan 30, 2014, 2:37:01 PM1/30/14
to light-table...@googlegroups.com
You can write modes purely in CLJS if you want. The rainbow plugin does that. You would obviously need to do some work to figure out *what* to color, but honestly you could just do a simple tokenizer and ignore some keywords to get most of the way there.

Cheers,
Chris.


--
You received this message because you are subscribed to the Google Groups "Light Table Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to light-table-discu...@googlegroups.com.

Bryan Lott

unread,
Jan 30, 2014, 4:24:42 PM1/30/14
to light-table...@googlegroups.com
That was my initial thought as well.

I'll take a look at rainbow parens and see if that gets me going.

thanks!
Bryan

Cheers,
Chris.


To unsubscribe from this group and stop receiving emails from it, send an email to light-table-discussion+unsub...@googlegroups.com.

fun...@gmail.com

unread,
Mar 28, 2015, 6:24:02 AM3/28/15
to light-table...@googlegroups.com
I need this.
Reply all
Reply to author
Forward
0 new messages