Code Syntax Highlighting
Tue, 04 Aug 2020 20:13 UTC by AppSoftware
You can highlight code syntax for any of 189 languages.
You can create fenced code blocks by placing triple backticks ``` before and after the code block or by indenting text.
Code detection is automatic but you can optionally add language indicators. For example, add a javascript code block as follows ...
```js
function demoSyntaxHighlighting()
{
var elem = document.getElementById('target-elem');
}
```
Which would render the following ...
function demoSyntaxHighlighting()
{
var elem = document.getElementById('target-elem');
}
AppSoftware Journals uses highlightjs.org for code highlighting.