Python Syntax Highlighting in Xcode

Viewed 745

Is there any way to achieve better syntax highlighting in Xcode for Python? Xcode only identifies and colorizes keywords, strings, numbers and comments. It doesn't seem to be able to identify the self variable name that represents instance objects. I've experimented with other color themes but it doesn't change the fact that Xcode cannot identify names for instance objects in Python. Is there any way to achieve better syntax highlighting?

enter image description here

1 Answers

I'm using xcode12;after you have setup python properly in xcode.(refer to this if you are not sure of your setup: https://youtu.be/h8_68OONY-w)

Now to get back 'syntax highlighting' for python code.Click on the 'Editor' tab on the menu bar, click on 'syntax colouring' and choose 'python' from the list and you must be fine.

Related