Code Highlighter

Highlight Code Block

{?>
    <script>
        console.log("Hello there!")
    </script>
<?}
$code = $_;
:: codehighlighter:highlight(code = $code, "javascript")

And then the result

<script>
    console.log("Hello there!")
</script>

Highlight Code Block in Markdown

When writing markdown, wrap the code you want to highlight with a tab and new line before and after the code block.

### Header in Markdown 

    <div>
        Content of my div
    </div>

The rest of my markdown.

and the result would be the following:

Header in Markdown

<div>
    Content of my div
</div>

The rest of my markdown.

Copyright © SunSed LLC 2013-2021 All rights reserved.