Embedding Code Snippets

How to embed and style code snippets in your docs pages.

We use Github Flavored Markdown as our format for code highlighting.

```js
const foo = "Foo"
console.log(foo)
```
const foo = "Foo"
console.log(foo)

DuckDocs supports over 200 programming languages through the use of the Rouge highlighting library, so odds are the language you need is supported.

On this page

    powered by