# Source Code Block in a blog post

**URL:** <https://community.hubspot.com/t/source-code-block-in-a-blog-post/766>\
**Category:** Blog, Website & Page Publishing\
**Tags:** content\
**Created:** [January 18, 2017, 2:12pm UTC](https://community.hubspot.com/t/source-code-block-in-a-blog-post/766 "2017-01-18T14:12:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![relabidin](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/relabidin/32/10664_2.png) [@relabidin](https://community.hubspot.com/u/relabidin)\
**Post date:** [January 19, 2017, 2:20pm UTC](https://community.hubspot.com/t/source-code-block-in-a-blog-post/766/2 "2017-01-19T14:20:42Z")

</div>

Hi @ColeMcdonald,

HubSpot does not have a built-in tool or plug-in for formatting and highlighting code snippets in your content, but, you can edit the source of your content and use the HTML \<code\> tag or HubL {% raw %} tag to display code. However, the syntax of this code will not be automatically highlighted.

This article from our Designers’ Blog goes over using code snippets in your HubSpot Content: [How To Insert Source Code Into Your HubSpot Blog Post](http://designers.hubspot.com/blog/how-to-insert-source-code-into-your-hubspot-blog-post)

The article also mentions using [Prism.js](http://prismjs.com/) in order to highlight specific syntax in your code. I do not have any experience with Prism.js but it appears to be a popular tool that should allow you to highlight the syntax of your code snippets in HubSpot.

Rami

---

_[View the full topic](https://community.hubspot.com/t/source-code-block-in-a-blog-post/766)._
