Syntax Highlighting

Syntax highlighting in Markdown allows you to format and highlight code snippets for better readability. It’s particularly useful when sharing code in technical documentation or online forums.

Feature Syntax Output
Single Line Code ` int z = 19; ` int x = 19;
Multiline Code ``` int y = 4;
cout << y << endl;
```
int y = 4;
cout << y << endl;
Syntax Highlighting with Language Specified ``` Python
int x = 10;
cout << x << endl;
```
Python
int x = 10;
cout << x << endl;

Markdown Cheat Sheet

Markdown is a simple way to write and format text using plain text symbols. It’s a lightweight language that lets you create nicely formatted text without the use of complex coding. The idea is to make it easy for people to read and understand the formatting, even if they’re looking at the raw text.

This cheat sheet will go over some of the key components of markdown, including code syntaxes and examples that the reader can use to create their own highly formatted text articles.

Similar Reads

These are the following markdowns:

Table of Content Markdown Headings Text Styles Syntax Highlighting Markdown Tables Links Images and GIFs Lists List using HTML Horizontal Rule: Comments Escape Characters...

Markdown Headings

It creates different levels/sizes of headings....

Text Styles

Markdown allows us to apply many styles, such as bold, italics, blockquotes, underlining, strike-through, etc., to a selected text selection....

Syntax Highlighting

Syntax highlighting in Markdown allows you to format and highlight code snippets for better readability. It’s particularly useful when sharing code in technical documentation or online forums....

Markdown Tables

Markdown tables are a way to organize data in a structured format within a Markdown document. They consist of rows and columns, with each cell containing data. Tables in Markdown are created using a combination of vertical bars (|) and hyphens (-) to define the columns and rows, respectively. The first row typically contains the column headers, while subsequent rows contain the data. For example:...

Links

Link Type Description Syntax Output Inline Link Used to link users to another page, displayed as blue hyperlinked words. [Link Text](https://www.geeksforgeeks.org/) Link Text Reference Link Used to link one information object to another, by providing some references to that new page. [Link Text] [reference text][reference text]: https://www.geeksforgeeks.org/ Link Text Relative Link Shows the relationship between the current page’s URL and the linked page’s URL. [A relative Link] (rl.md) A relative Link Auto Link Automatically converts URLs into clickable links. Visit https://www.geeksforgeeks.org/ Visit https://www.geeksforgeeks.org/...

Images and GIFs

Inline Image:...

Lists

Ordered Lists:...

Horizontal Rule:

A horizontal rule is used to separate content within a Markdown document. It is created by placing three or more hyphens, asterisks, or underscores on a line by themselves....

Comments

In Markdown, you can create comments using HTML comments. HTML comments are enclosed in tags....

Escape Characters

In Markdown, you can use escape characters to display characters that have special meaning in Markdown syntax. To use an escape character, you simply precede the character with a backslash (\)....

Contact Us