DEV Community

Discussion on: Should you use Medium or dev.to?

Collapse
 
alexisbenamar profile image
Alexis Benamar • Edited

Great article, it's nice to always have a choice.

But, I don't agree with your last statement about ugly code, as markdown offers syntax highlighting as a built-in feature. You just need to add the language you used in your code snippet next to the first triple backticks at the top. (You can find the right name for your language on numerous markdown help pages)

For example:

```javascript
const hello = (name) => {
    console.log(`hello, ${name}`)
}
```
Enter fullscreen mode Exit fullscreen mode

will render as:

const sayHello = (name) => {
    console.log(`hello, ${name}`)
}
Enter fullscreen mode Exit fullscreen mode

PS: there are many bullet points where the bold text isn't properly rendered because the closing ** sticks to a word, you might want to check it out πŸ‘

Collapse
 
mzaini30 profile image
Zen

Markdown is amazing. I like this.

Collapse
 
davidmm1707 profile image
David MMπŸ‘¨πŸ»β€πŸ’»

I didn't know. I'm going to update the OP.