Sitemap
JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

Self Explanatory Code?

--

Press enter or click to view image in full size

I created documentation for a project and needed to mark a thing or two on the code samples. Instead of using comments, I created a tiny script that attach floating labels where I need.

My coworkers ask for those “scripts” — so instead, I created this tiny package, a transformer for Shiki that add floating labels where ever I need them.

This package allow you to add floating label in the Shiki code blocks with specific comments format. It can be used in Vitepress as in any other Shiki integration.

Get Ziv Perry’s stories in your inbox

Join Medium for free to get updates from this writer.

For any comment or suggestion, do not hesitate to contact me.

And enjoy annotating your code samples.

A message from our Founder

Hey, Sunil here. I wanted to take a moment to thank you for reading until the end and for being a part of this community.

Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? We don’t receive any funding, we do this to support the community. ❤️

If you want to show some love, please take a moment to follow me on LinkedIn, TikTok, Instagram. You can also subscribe to our weekly newsletter.

And before you go, don’t forget to clap and follow the writer️!

--

--

JavaScript in Plain English
JavaScript in Plain English

Published in JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.