I am a Frontend Developer with a strong emphasis on React and a passion for creating accessible web applications. I am dedicated to democratizing the web for all users.
I'm not the OP, so I'm not in the position to comment.
But can I just say, your comment reminded me that syntax highlighting is a thing, and so I have gone back to update my own posts to include them. Just wanted to say a big thank you! Cheers
I am a Frontend Developer with a strong emphasis on React and a passion for creating accessible web applications. I am dedicated to democratizing the web for all users.
First, wrap code in triple backticks (`) to turn them into code blocks:
Next, append the opening triple backticks with the language of your code block to add syntax highlighting (keywords are highlighted accordingly):
Reference: You can check here for a full list of languages - you want to be using the short name in the third column - typically supported. Of course, this might vary depending on the markdown implementation on dev.to, but common languages should work just fine.
Some comments have been hidden by the post's author - find out more
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.
I'm not the OP, so I'm not in the position to comment.
But can I just say, your comment reminded me that syntax highlighting is a thing, and so I have gone back to update my own posts to include them. Just wanted to say a big thank you! Cheers
Is there any tutorial on how to make syntax highlighting on dev.to?
@joao9aulo
First, wrap code in triple backticks (`) to turn them into code blocks:
Next, append the opening triple backticks with the language of your code block to add syntax highlighting (keywords are highlighted accordingly):
Reference: You can check here for a full list of languages - you want to be using the short name in the third column - typically supported. Of course, this might vary depending on the markdown implementation on dev.to, but common languages should work just fine.