How do you create a code block using Markdown? How about syntax highlighting?

Experience Level: Junior
Tags: Markdown

Answer

``BetterCoder.io``

Comments

codeninja
We can use Code Highlighting with Language specified like this: Example Syntax for C++: ```C++ int x = 10; cout << x << endl; ``` check this cheat sheet for more details: https://www.interviewbit.com/markdown-cheat-sheet/
Markdown for beginners
Markdown for beginners

Are you learning Markdown ? Try our test we designed to help you progress faster.

Test yourself