The Enlighter WordPress plugin comes with extended github flavored markdown support which allows you to used fenced codeblocks as well as backtick inline code within text-editor.
This is an optional feature which has to be enabled on the Enlighter Settings Page: Enlighter -> Editing -> Markdown
Supported language identifier: a full list can be found here
Fenced Codeblocks are separated by three backticks. You can set the codeblock language optionally by adding the identifier to the end of the start delimiter.
Syntax
```<language>
...code...
```
Example
```php
// generate code fragment
$T->_codeFragments[] = array(
// the language identifier
'lang' => $lang,
// code to highlight
'code' => $match[1],
// inline
'inline' => true
);
```
Enlighter supports extended inline markdown code using backticks with a trailing language identifier to set the language of the snippet
Syntax: `code`<language>
Example: `console.info('Hello World');`js
Standard inline code does not allow you to set the language. In this case the default mode will be used - you can change it in Enlighter -> Editing -> Markdown
Syntax: `code`
Example: `console.info('Hello World');`