Skip to content

Instantly share code, notes, and snippets.

@Ashton-W
Last active Mar 17, 2022
Embed
What would you like to do?
GitHub Markdown toggle code block
Click to toggle contents of `code` ``` CODE! ```
Click to toggle contents of other `code` ``` MORE CODE! ```
<details>
<summary>Click to toggle contents of `code`</summary>
```
CODE!
```
</details>
@Ashton-W
Copy link
Author

Ashton-W commented Jul 1, 2016

Learnt about it here https://gist.github.com/orta/057eab0832773aa299a6ebd39187ab06 but found out you can replace some of the HTML with a fenced code block :)

@abunsen
Copy link

abunsen commented Feb 21, 2018

Thank you!!

@soheon-lee
Copy link

soheon-lee commented Nov 30, 2020

Thanks!!

@nelantone
Copy link

nelantone commented Dec 19, 2020

Thank you! It works great 🎉 !

@Garllon
Copy link

Garllon commented Feb 12, 2021

This should work to highlight the code. You need the line breaks, before and after the block. Thanks to @Azure7111

Click to toggle contents of `code`
 Code

@sooendre
Copy link

sooendre commented Apr 15, 2021

Thank you!

@Piyush-linux
Copy link

Piyush-linux commented May 15, 2021

Thank You :)

@YusufAbdelaziz
Copy link

YusufAbdelaziz commented Oct 14, 2021

Thanks :D

@maiconhenriquefa
Copy link

maiconhenriquefa commented Oct 25, 2021

Thanks!

@kellykang-tech
Copy link

kellykang-tech commented Feb 20, 2022

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment