> ## Content Index
> Fetch the complete content index at: https://ghost.org/changelog/llms.txt
> Use this file to discover other available public pages before exploring further.

# Language support in code cards
- URL: https://ghost.org/changelog/language-selection/
- Published: 2019-05-08T15:22:39.000Z
- Updated: 2021-01-04T04:34:47.000Z
- Description: Add syntax highlighting to blocks of code on your site using code cards in the Ghost editor, which now support language selection and captions!
- Author: Kym Ellis
- Tags: Improved, #changelog, #ghost

Add a language to blocks of code on your site using code cards in the Ghost editor, which now support language selection and captions!

You can now set a language in code cards in Ghost, just type \`\`\`javascript to create a new codeblock. Or use the user interface if you prefer: 

![](https://storage.ghost.io/c/11/12/11129d96-48f2-4637-9c25-b077458f01e2/content/images/2019/05/code-language-select-1.gif)

You can also apply syntax highlighting using a library like [prism.js](https://prismjs.com/?ref=ghost.org), or by using [code injection](https://lookingsideways.co.uk/super-simple-code-highlighting-for-ghost/?ref=ghost.org). Here's a demo of a CSS code block:

```css
body {
  background: black;
}
.container {
  position: relative;
  width: 800px;
  height: 600px;
  background: #214760;
  margin: 0px auto;
}
```

New: Add captions to code cards 😍

Once your code block is complete, you can insert a caption to add more context for your readers!

### Admin API support

We've also added caption and language extraction for code blocks when converting HTML via our [Admin API](https://ghost.org/docs/admin-api/?ref=ghost.org) 💪

---

****Ghost(Pro)** users have already been updated and have access to language selection and captions for code cards. Self hosted developers can use [Ghost-CLI](https://ghost.org/docs/ghost-cli/?ref=ghost.org) to get this feature by running `$ ghost update` to install the [latest release](https://github.com/TryGhost/ghost/releases?ref=ghost.org).