Code syntax coloring or code fence block syntax highlighting

Samuel Smith's Avatar

Samuel Smith

15 Feb, 2014 08:56 PM

The user manual for multi markdown composer

Has the following example

# Demonstrate Syntax Highlighting if you link to highlight.js #
# http://softwaremaniacs.org/soft/highlight/en/
print "Hello, world!\n";  
$a = 0;
while ($a < 10) {  
print "$a...\n";  
$a++;
}
<pre><code>
to get colored syntax but it doesn't explain what it means to &quot;link&quot; to highlight.js.
Where do I link?

How to I set up Composer to get colored syntax?</code>
</pre>
  1. Support Staff 1 Posted by Fletcher on 17 Feb, 2014 02:27 AM

    Fletcher's Avatar

    HTML pages have to include a link to javascript if they want it to run.

    You can use the `html header` metadata to include this, just like
    MathJax or any other javascript or information that you want to put in
    the `<head>` section.

    F-

  2. Support Staff 2 Posted by Fletcher on 17 Feb, 2014 03:12 PM

    Fletcher's Avatar

    BTW, all of this is documented on the page you refer to:

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

    F-

  3. Fletcher closed this discussion on 17 Feb, 2014 03:12 PM.

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