Question on multimarkdown code sytax

Hi all.

From the devonthink documentation I understand it supports MultiMarkdown and refers to the Guide:

https://rawgit.com/fletcher/human-markdown-reference/master/index.html

there is says that for fenced code block we should use this syntax

# 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++;
}

(cool that it renders well on the forums :))

but in devonthink it dosent seem to render with code highlighting.

even when I use prism.js:

<link href="/Users/zeltak/MLT/css/prism.css" rel="stylesheet">
<script src="/Users/zeltak/MLT/css/prism.js"></script>

it dosent render.

the only way to render correctly is to add the language text to the top

```language-css
body {
  margin: 0;
  padding: 0;
  color: #222;
  background-color: white;
  font-family: sans-serif;
  font-size: 1.8rem;
  line-height: 160%;
  font-weight: 400;
}

im wondering what’s the reason for that as it a)is more annoying then just stating the actual language and also seems to deviate from the Multimarkdown syntax?

any Clue?

thx

Z

the only way to render correctly is to add the language text to the top

That’s not annoying, it’s the required syntax used by the prism code. MultiMarkdown doesn’t have syntax highlighting built-in so you need to abide by the rules of any extra options you add (if possible to use in Markdown).

ahh I see. Ok that makes sense I guess. Is there no standard across all markdown flavors that support highlighting?

thx

Z

Is there no standard across all markdown flavors that support highlighting?

No. Syntax highlighting is not part of the Markdown specification.