dotland icon indicating copy to clipboard operation
dotland copied to clipboard

Add `.ts` `.js` language toggle to code block

Open babakfp opened this issue 2 years ago • 0 comments

Live Example Annotation 2021-11-08 181406-min

What is the benefit?

Not everyone uses, cares, or likes Typescript. Let's say I don't know ts, then the code is going to be very confusing, hard to read, and repulsive to me. I may even drop the Deno and go to the Node's big muscular sexy arms. What if?... What if the language toggle were available? Then I can just look at the code that I'm familiar with. Then probably I would stick with Deno (for now). It just makes the Deno so much hard for the beginners or the people that don't know ts. I believe it's a valuable move to add this feature. It's important not to forget to update both languages when editing the code block content.

Thanks.

babakfp avatar Nov 07 '21 14:11 babakfp