matklad / pale-fire

Port of Emacs Zenburn theme to VS Code
https://marketplace.visualstudio.com/items?itemName=matklad.pale-fire
72 stars 7 forks source link

Set colour of consuming functions #18

Closed lunacookies closed 3 years ago

lunacookies commented 4 years ago

This colour isn’t used anywhere else; maybe it stands out too much.

lunacookies commented 3 years ago

I’ve recently been playing around with highlighting beyond colour more frequently, and decided to try making consuming functions italic:

Screen Shot 2020-10-24 at 6 57 35 pm

I like this, because it visually makes them more distinct, while also not being distracting.

This was inspired by Input from @FontBureau, which is a programming font that isn‘t monospaced. I was skeptical at first, but I’ve come to really like it. On Input’s website the idea of using more than just colour for syntax highlighting is mentioned:

Screen Shot 2020-10-24 at 7 01 16 pm

Although using bold and italic isn’t anything new, I’ve never heard of using entirely different fonts for different parts of code. I’ve set up some local customisations in my VS Code that makes function and type declarations bold, and uses a serif font for strings:

Screen Shot 2020-10-24 at 7 03 28 pm

Comments are also serif and italic:

Screen Shot 2020-10-24 at 7 03 39 pm

I’m considering changing self to be italic, but I’m not decided about it:

Screen Shot 2020-10-24 at 7 43 57 pm

What do you think? In my opinion a lot of these aren’t suitable for inclusion with Pale Fire (especially those that require a second font), but some of them (like the italic consuming functions, italic self and bold declarations) could be a nice change.