I tried to use pygments as a colorer for JS code. But encountered that when 
leo configured to use pygments - it colors any code as it was python code, 
no matter which @language is set atop of a node.
I suspect that it was tested with python only, or no other languages have 
been supported.
There are a really few info about leo+pygments (some words in the docs + a 
couple of issues on github + some threads here) so I could not find the 
answer.

Can please somebody advise me how to configure leo to use pygments to 
highlight js (and others like html, css, c++, .....) since original leo's 
highlighting schemes are very poor and outdated.

Also I would like to know can I extend existing pygments scheme for some 
language and teach leo to use this extended scheme
(for instance, I would like force JS colorer to color 'that' and 'self and 
support `such ${string} syntax` since pygments does not still able to do so)

Thanks in advance!

PS: I almost re-implemented JS scheme in jEdit approach and then thought 
that it's not necessary since leo can work together with pygments. Should I 
nevertheless continue with jedit? or take care on pygments way only?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5fc9e296-bf84-450d-91de-71366764acc1%40googlegroups.com.

Reply via email to