change syntax coloring for variable names

Asked by Michael Scott

I would really like to colorize variable names in source code.

The bundled python mode did this. I upgraded to the python-mode.el and I was wondering how to achieve the same coloring of variables.

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andreas Roehler (a-roehler) said :
#1

Am 19.09.2013 03:26, schrieb Michael Scott:
> New question #235965 on python-mode.el:
> https://answers.launchpad.net/python-mode/+question/235965
>
> I would really like to colorize variable names in source code.
>
> The bundled python mode did this. I upgraded to the python-mode.el and I was wondering how to achieve the same coloring of variables.
>
> Thanks.
>

M-x customize-face RET py-variable-name-face RET

Where is displayed string "default", replace it by a convenient face it inherits,
for example by "font-lock-variable-name-face".

Can you help with this problem?

Provide an answer of your own, or ask Michael Scott for more information if necessary.

To post a message you must log in.