Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

More Complex Syntax Highlighting for Python in PyCharm?

Python highlighting its too generic.

I can't seem to find any resolution to this at all in PyCharm Pro. I have the following:

  1. local variable

  2. class name

  3. class instance

  4. class instance calling method

  5. a global variable

But, everything is white no matter how vastly different the scope is. Is there any way I can improve this with a plugin? Or, customize the Python syntax to be more complex?

I don't have any issue with this at all when customizing the JavaScript, HTML or many other languages syntax highlight color. It's just that with Python, the only thing I'm left with to customize is this:

Editor, Color Scheme, Python

How do I add more color to Python's Color Scheme in PyCharm?

like image 589
Matt Andrzejczuk Avatar asked Dec 14 '17 22:12

Matt Andrzejczuk


1 Answers

You can set those variables/classes/methods to any color in Preferences -> Editor -> Color Scheme -> Language Defaults, Custom and Python.

For more colors, you can even check the semantic highlighting in Language Defaults.

And of course, there are many color schemes available on github and other sites, which could be imported in Color Scheme tab.

like image 70
halfelf Avatar answered Sep 25 '22 23:09

halfelf