A
A
Aristarkh Deryapa2017-05-17 13:57:44
Python
Aristarkh Deryapa, 2017-05-17 13:57:44

How to do "syntax" highlighting in python?

Tell me, please, using the code example (Python 3.4) how to highlight the "syntax"?
There are "service" words print(-text-), line(-text-), preferably orange, variable types(int, str...), blue color. And the rest of the text is black, how to implement? Then I climbed all the IDLE code, I did not understand how.
Attention! The important thing is that instead of -text- EVERYTHING will go.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Q
qlkvg, 2017-05-17
@qlkvg

forget about idle, install pycharm

L
longclaps, 2017-05-17
@longclaps

In Python 3.4 "print" is not a "function word", it is a "function".
In Python 3.4 "line" is not a "functional word", it is not there at all.
Somewhere you are not climbing there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question