DEV Community

Discussion on: Angular, Typescript, and .net core — updating SolarProjection with a form

Collapse
 
johncarroll profile image
John Carroll

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)

Collapse
 
kritner profile image
Russ Hammett

ah thanks for the advice! I was only porting from medium, didn't realize. I'll have to go back and correct previous posts :)

Collapse
 
johncarroll profile image
John Carroll

👍

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)

Thread Thread
 
kritner profile image
Russ Hammett

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!