Syntax highlighter
Posted: Mon Mar 09, 2015 3:18 pm
Hello
I am trying to make a python code editor that highlights keywords, operators and strings.
The problem of course is with the quotes as Python supports single, double and triple quotes for strings.
Ex:
x = 'some text'
x = "some text"
x = '''some text'''
Also i can't find a way to go back and modify my "script" in the field.
I tried with pass keyDown but it doesn't work well
How would you approach the problem ?
Thanks
I am trying to make a python code editor that highlights keywords, operators and strings.
The problem of course is with the quotes as Python supports single, double and triple quotes for strings.
Ex:
x = 'some text'
x = "some text"
x = '''some text'''
Also i can't find a way to go back and modify my "script" in the field.
I tried with pass keyDown but it doesn't work well
How would you approach the problem ?
Thanks