# Posting Code in posts

**URL:** <https://forum.ghost.org/t/posting-code-in-posts/54451>\
**Category:** Using Ghost\
**Created:** [January 16, 2025, 3:09am UTC](https://forum.ghost.org/t/posting-code-in-posts/54451 "2025-01-16T03:09:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![braedach](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/braedach/32/34371_2.png) [@braedach](https://forum.ghost.org/u/braedach)\
**Post date:** [January 16, 2025, 3:09am UTC](https://forum.ghost.org/t/posting-code-in-posts/54451/1 "2025-01-16T03:09:10Z")

</div>

Hello,

Stupid first question, but I would like to share code in my posts. I have looked at markdown and HTML and they don’t cut the mustard. Most of my coding is in bash or PowerShell.

How does everyone else do this?

Regards

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [January 16, 2025, 7:09am UTC](https://forum.ghost.org/t/posting-code-in-posts/54451/2 "2025-01-16T07:09:28Z")

</div>

Ghost has native support for code blocks, so you should be able to share your code following this guide:

> **[A complete guide to code snippets](https://ghost.org/tutorials/code-snippets-in-ghost/)**
>
> Developers write code. Some developers write about writing code. But when they try to share that code on the web, everything that makes code more readable – like formatting and syntax highlighting – is gone!

---

<div class="post-metadata">

**Author:** ![braedach](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/braedach/32/34371_2.png) [@braedach](https://forum.ghost.org/u/braedach)\
**Post date:** [January 16, 2025, 4:50pm UTC](https://forum.ghost.org/t/posting-code-in-posts/54451/3 "2025-01-16T16:50:50Z")

</div>

Vikas - worked a treat. Thanks mate

---

<div class="post-metadata">

**Author:** ![vlavrynovych](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vlavrynovych/32/31432_2.png) [@vlavrynovych](https://forum.ghost.org/u/vlavrynovych)\
**Post date:** [January 17, 2025, 3:16pm UTC](https://forum.ghost.org/t/posting-code-in-posts/54451/4 "2025-01-17T15:16:33Z")

</div>

Hi,

As an alternative option and especially if you like self hosting and homelabbing you can try the [GitHub - jordan-dalby/ByteStash: A code snippet storage solution written in React & node.js](https://github.com/jordan-dalby/ByteStash).

I really like this project. It allows you to manage code snippets outside of you blog and update them from there. It supports embedding spippets.

Here is a video with a quick overview:

[![](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/7/6/76644c15852cf51f2c7a6e8f4c1c0b0648b0abb2.jpeg "ByteStash - Your New Code Snippet Storage Solution") ](https://www.youtube.com/watch?v=PdqibbRSbg4&t=716s)

---

<div class="post-metadata">

**Author:** ![braedach](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/braedach/32/34371_2.png) [@braedach](https://forum.ghost.org/u/braedach)\
**Post date:** [January 21, 2025, 6:24am UTC](https://forum.ghost.org/t/posting-code-in-posts/54451/5 "2025-01-21T06:24:18Z")

</div>

thankyou. Investigating

---

<div class="post-metadata">

**Author:** ![noodlemctwoodle](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/noodlemctwoodle/32/36609_2.png) [@noodlemctwoodle](https://forum.ghost.org/u/noodlemctwoodle)\
**Post date:** [June 22, 2025, 2:57pm UTC](https://forum.ghost.org/t/posting-code-in-posts/54451/6 "2025-06-22T14:57:32Z")

</div>

I created this for syntax highlighting in Ghost.

> <https://github.com/noodlemctwoodle/sentinel.blog/blob/main/Ghost/Syntax/README.md>

 ![CleanShot 2025-06-22 at 16.25.47](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/0/2/029e15dcae70c1a03316fa26a564a6c1ec6c3b27.png)

This allows me to store the code on GitHub and reference it in my blogs 😄
