updates for 6.0 release start here. see the release notes for all the details in 6.0
This commit is contained in:
27
_pages/mydoc/mydoc_code_samples.md
Normal file
27
_pages/mydoc/mydoc_code_samples.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: Code samples
|
||||
tags: [formatting]
|
||||
keywords: dcode samples syntax highlighting
|
||||
last_updated: July 3, 2016
|
||||
datatable: true
|
||||
summary: "You can use fenced code blocks with the language specified after the first set of backtick fences."
|
||||
sidebar: mydoc_sidebar
|
||||
permalink: mydoc_code_samples
|
||||
folder: mydoc
|
||||
---
|
||||
|
||||
## Code Samples
|
||||
|
||||
Use fenced code blocks with the language specified, like this:
|
||||
|
||||
```js
|
||||
console.log('hello');
|
||||
````
|
||||
|
||||
**Result:**
|
||||
|
||||
```js
|
||||
console.log('hello');
|
||||
```
|
||||
|
||||
For the list of supported languages you can use (similar to `js` for JavaScript), see [Supported languages](https://github.com/jneen/rouge/wiki/list-of-supported-languages-and-lexers).
|
Reference in New Issue
Block a user