# Embedding code in Markdowns

**URL:** <https://talk.jekyllrb.com/t/embedding-code-in-markdowns/3773>\
**Category:** Help\
**Created:** [January 3, 2020, 6:46pm UTC](https://talk.jekyllrb.com/t/embedding-code-in-markdowns/3773 "2020-01-03T18:46:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [January 3, 2020, 8:18pm UTC](https://talk.jekyllrb.com/t/embedding-code-in-markdowns/3773/2 "2020-01-03T20:18:41Z")

</div>

Have a search through the old posts on this site. This question comes up often.

- [Code highlighter on website](https://talk.jekyllrb.com/t/code-highlighter-on-website/3622/2)
- [Rouge: code snippet highlighting not working](https://talk.jekyllrb.com/t/rouge-code-snippet-highlighting-not-working/121/2)

The short of it is you need to add CSS to your site to style code blocks. If you inspect the code block in the final HTML you’ll see that it’s wrapping elements in different classes.

What’s missing is the CSS that applies colors to them. Search around for Rouge CSS themes or Pygments CSS themes. They’re interchangeable.

---

_[View the full topic](https://talk.jekyllrb.com/t/embedding-code-in-markdowns/3773)._
