Zulip Chat Archive
Stream: new members
Topic: why is code sometimes in colour and sometimes not?
Pietro Lavino (Jun 18 2024 at 22:50):
I am coding in VScode and some proof will be very coloured, for example "exact" will always appear as purple, but if I copy the same proof rigtht below exact will appear as white instead...
Bjørn Kjos-Hanssen (Jun 19 2024 at 03:14):
Can you share a screenshot, perhaps?
Kevin Buzzard (Jun 19 2024 at 07:11):
If you do ctrl-K ctrl-T then you will be able to choose from many colourful options in VS Code and there are more you can download (I have one which makes everything different shades of pink, for example)
Kevin Buzzard (Jun 19 2024 at 07:13):
The colours are decided by not just the spelling of the word but the actual role which the token is playing (is it a command, a variable, a theorem, a syntax error etc etc)
Mario Carneiro (Jun 19 2024 at 21:57):
it could also be that the semantic highlighting is failing. Try selecting "Lean 4: Server: Restart File" from the ctrl-shift-P menu
Last updated: May 02 2025 at 03:31 UTC