DEV Community

Discussion on: A Comprehensive Guide to JavaScript - Part 1 - ES6

Collapse
 
kgprajwal profile image
Prajwal

Thank You! Try using VS Code and install an extension called 'Babel JavaScript' or 'ES7 React/Redux/GraphQL/React-Native snippets'. This must give you the coloured syntax.

Collapse
 
zxcodes profile image
Mohammed Farmaan. • Edited

I mean here, while writing a post on dev.to, after including code in here, it shows uncolored syntax. But how did you get colored one? Which tags did you use to include the code?

Thread Thread
 
kgprajwal profile image
Prajwal

Oh sorry about that. Just before your code starts use triple backticks and then mention the language of the code being used. Finally when the code ends, again use triple backticks.

To get complete details check out: github.com/adam-p/markdown-here

Thread Thread
 
zxcodes profile image
Mohammed Farmaan.

Thanks. I got it.😁

Thread Thread
 
kgprajwal profile image
Prajwal

Your welcome!😊