CH

CHSS – CSS-Esque Semantic Code Styling in Real-Time

Hacker News

CHSS – CSS-Esque Semantic Code Styling in Real-Time

First time showing something off here. So I have always found semantic highlighting very interesting, and besides the kind of highlighting VSCode natively offers, I have always been partial to name based highlighting like Colorcoder or its VSCode counterpart "Color Identifiers", where symbols get assigned different colors based on their names. But I noticed that you could go further than just having the color be based on the hash of the name, I wanted to assign specific colors, have some "super important" class or variable colored in red or maybe every function that starts with the word "get" colored blue, or underlined, or bold etc. And the more I thought about it, I realized I basically just wanted CSS for code highlighting. So I wrote and extension that does just that. It lets you use use .chss files, basically a dialect of SCSS to design a dynamic color scheme for your code, that takes names as well as semantic token information into account and lets you set any style option that VSCode's text decoration class allows. Now I mostly wrote this extension for the fun of implementing weird stuff and I realize that the functionality is maybe a little bit dumb, a little bit counterproductive to productivity itself if you waste time picking out pretty colors for specific variables and so on. But... while styling my way through one on of my bigger coding projects, I started to wonder if defining colors for variables with names matching a specific names and patterns could, when utilized consistently, lead to a better and more consistent habit of selecting names. Instead of having variables with dozens of random different names, even though they are doing the same thing, one would select consistent names to get the right color, coding standard enforced via aesthetics. Anyway, I think it's a neat project and I might look into AST parsing in the future to implement proper relational CSS combinators.

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: started · Missing: supports, reddit linkedin, podcasting
85%85% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: coding, code · Missing: mac, agents, macos
65%65% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
42%42% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
37%37% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
33%33% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

CS
CSSBattle – The First CSS Code Golfing Battleground68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CSSBattle – The First CSS Code Golfing Battleground

Hacker News19
COGXIO
COGXIO

Find someone interesting around you in real-time

BetaList
Vi
Visualizing the 2016 Presidential Discussion in Real Time (D3js)66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Visualizing the 2016 Presidential Discussion in Real Time (D3js)

Hacker News4
Sh
Shoot ping pong balls in real time at roboempress57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Shoot ping pong balls in real time at roboempress

Hacker News1
Ce
CertStream – See SSL certs as they're issued in real time54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CertStream – See SSL certs as they're issued in real time

Hacker News142
Se
See your losses to inflation in real time56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

See your losses to inflation in real time

Hacker News2
Db
Dbpatterns Is Now Real Time56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Dbpatterns Is Now Real Time

Hacker News1
Vi
Visualizing transit delays in real time for SF MUNI73%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Visualizing transit delays in real time for SF MUNI

Hacker News58
Pr
Precess , a real-time sass compiler59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Precess , a real-time sass compiler

Hacker News1
Sc
Scrapy Real Time56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Scrapy Real Time

Hacker News37