syntax highlighting - How is syntaxhighlighters.py called by Spyder IDE? -


for spyder ide, syntaxhighlighters.py compiled spyder.exe, or called directly spyderlib?

i see on github (https://github.com/spyder-ide/spyder/blob/master/spyderlib/utils/syntaxhighlighters.py) , several other sites syntaxhighlighters.py included in spyder package. what's not clear how used spyder. part of source code compiled spyder.exe?

the desired end state able update syntaxhighlighters.py kivy syntax highlighting.

kivy has pygments lexer kv language, available through github, https://github.com/kivy/kivy/blob/master/kivy/extras/highlight.py

i'm trying figure out if can try modify spyder's syntaxhighlighters.py, using kivy's highlight.py, or if need somehow re-compile spyder incorporate changes syntaxhighlighters.py.

thank you.

pygments not natively support kivy highlighting (yet), (look available lexers here)

you add ability modifying generic pygments highlighter located here

now need add kivy somewhere in spyder codebase, in syntaxhighlighters.py.

and update this if has condition fins if .kv file , based on assigns correct custom lexer.

cheers


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -