1

Is there a way to set the color of numbers differently to that of regular text?

for example, numbers such as: 1, 2F, 2.0f, 0x1234.

Can this be changed by a theme author? If not, how can this be modified?

3

You can achieve highlighting of numbers in the buffers using highlight-numbers package. The face used for numbering is highlight-numbers-number and it inherits from font-lock-constant-face.

For a deftheme the entry can be written as:

'(highlight-numbers-number ((t (:foreground "#f0ad6d"))))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.