Consider specifing the language in your markdown code blocks because Dev.to has syntax highlighting!
You can do this by adding the language after the first three backticks at the start of your code block:
// code block starts with '''js (but with backticks instead of ')constfn=()=>{constx="hello"return3+x}
vs
// code block starts with just ''' (but with backticks instead of ')
const fn = () => {
const x = "hello"
return 3 + x
}
Not sure that makes sense. The parser makes it difficult to explain. Here's a quick GitHub gist that will let you check out the raw text of this comment: Gist
I’m a young full stack developer focussing mainly on Javascript/Typescript. I work in an amazing company named Craftworkz during the week, and next to that I have my own company named Webtric.
Trouble maker and Problem solver ⚙️🔧
Loves simplicity, hates bullshit 💩.
Productivity obsessed, avid learner 🖥🚀
Sport and outdoor freak 🧗⛰
Metalhead 🎸🤘 Father of 2 👨👩👦👦
Opinions are my own
Great post!
Consider specifing the language in your markdown code blocks because Dev.to has syntax highlighting!
You can do this by adding the language after the first three backticks at the start of your code block:
vs
Not sure that makes sense. The parser makes it difficult to explain. Here's a quick GitHub gist that will let you check out the raw text of this comment: Gist
Oh okay, thanks! Did not know that! 👏
Wow. Cool suggestion. I do this all the time in Readme files, but never tried on DEV. To