12 ms·
Ask HN: Custom Painting Parts of Code?
I want to paint parts of my code a different color to identify functions and parts visually.
For example on a JSON im editing i would like to select an object and right-click to change the color - making the linter theme for example more red or making the background red.
I'm interested in how to do this on vscode but also on opinions on the utility of this type of thing. I come from music producing and there its very important to color each part to conceptually draw a picture, but seems like in the programming world we just want to do it automatically / based on rules
- pestatije 3y agoyou can use commented-out html: //<div class="redPlease"> fun errorAsString(int c) : string { return "error " + c; } //</div>
- gus_massa 3y agoFor some weird cases of debuging code I didn't write[1], I copy the code to Google Docs and paint it there. [1] Or code I wrote a very long time ago.
- justo-rivera 3y agoCasually, that's the position i'm at. Changing some code and trying to "pin" parts i understand of it