TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Custom Painting Parts of Code?

1 点作者 justo-rivera超过 1 年前
I want to paint parts of my code a different color to identify functions and parts visually.<p>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.<p>I&#x27;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 &#x2F; based on rules

2 条评论

pestatije超过 1 年前
you can use commented-out html:<p><pre><code> &#x2F;&#x2F;&lt;div class=&quot;redPlease&quot;&gt; fun errorAsString(int c) : string { return &quot;error &quot; + c; } &#x2F;&#x2F;&lt;&#x2F;div&gt;</code></pre>
gus_massa超过 1 年前
For some weird cases of debuging code I didn&#x27;t write[1], I copy the code to Google Docs and paint it there.<p>[1] Or code I wrote a very long time ago.
评论 #38910906 未加载