re: A Comprehensive Guide to JavaScript - Part 1 - ES6 VIEW POST

re: Great post. Can you tell how can I get colored the colored syntax? I've tried using codeblock but it's like plain text.

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.


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?

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

code of conduct - report abuse