Though this isn't a DEV.to specific feature, same goes for pretty much any markdown renderer which understands triple backtick code blocks. Took me a while to figure it out myself since I think every website just assumes people are familiar with it. (though on stack overflow I think you need to use an html tag)
Aye, I'm mostly used to it working that way as well. With medium however, you get an immediate block with no chance to specify language. Its code blocks aren't very good, and I guess the auto post to dev.to I didn't properly go back and specify the type. It Def looks much better specified!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Fyi, if you annotate your code blocks with the language, it'll activate syntax highlighting which should make for some slightly easier reading.
I.e.
'''typescript
'''
(^ except using backticks "`" instead of single quotes. I couldn't find a way of preventing the backticks from being processed as code)
ah thanks for the advice! I was only porting from medium, didn't realize. I'll have to go back and correct previous posts :)
👍
Though this isn't a DEV.to specific feature, same goes for pretty much any markdown renderer which understands triple backtick code blocks. Took me a while to figure it out myself since I think every website just assumes people are familiar with it. (though on stack overflow I think you need to use an html tag)
Aye, I'm mostly used to it working that way as well. With medium however, you get an immediate block with no chance to specify language. Its code blocks aren't very good, and I guess the auto post to dev.to I didn't properly go back and specify the type. It Def looks much better specified!