Code syntax highlighting

Linda's Avatar

Linda

18 Apr, 2014 02:17 PM

I would like get code syntax highlighting when I enter text like

// some code here
<pre><code>Is this possible to do in MultiMarkdown Composer?

Thanks!</code>
</pre>
  1. 1 Posted by Linda on 18 Apr, 2014 02:52 PM

    Linda's Avatar

    I apologize for the messed up formatting in my post above. I figured out how to have code syntax highlighting by using highlight.js. I including this in my document:

    HTML header:

  2. 2 Posted by Linda on 18 Apr, 2014 02:54 PM

    Linda's Avatar

    Hmmm where did my HTML header content go in my previous post? Here it is again:

    HTML header: <link rel="stylesheet" href="http://yandex.st/highlightjs/8.0/styles/xcode.min.css">
    <script src="http://yandex.st/highlightjs/8.0/highlight.min.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>
    
  3. Support Staff 3 Posted by Fletcher on 18 Apr, 2014 03:22 PM

    Fletcher's Avatar

    You found the answer before I could get back to you.

    It's documented in the MMD users guide with an example:

    http://fletcher.github.io/MultiMarkdown-4/fences

    F-

    --
    Fletcher T. Penney
    Manager, Founder
    MultiMarkdown Software, LLC
    [email blocked]

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac