tag:support.multimarkdown.com,2013-02-12:/discussions/questions/4877-syntax-highlighting-for-other-programming-languages-within-code-blocksMultiMarkdown Software, LLC: Discussion 2018-10-19T08:27:42Ztag:support.multimarkdown.com,2013-02-12:Comment/445382302018-01-18T19:34:14Z2018-01-18T19:34:14ZSyntax highlighting for other programming languages within code blocks<div><p>Todd,</p>
<p>Thanks for writing in!</p>
<p>Syntax highlighting requires something to provide the highlighting --<br>
most people use javascript to do this, using whatever their preferred<br>
syntax highlighter is.</p>
<p>Further information is in the MMD 5 User's Guide, including an example<br>
setup:</p>
<p><a href="http://fletcher.github.io/MultiMarkdown-5/fences.html">http://fletcher.github.io/MultiMarkdown-5/fences.html</a></p>
<p>Hope this helps!</p>
<p>Fletcher</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/445382302018-01-18T19:58:26Z2018-01-18T19:58:26ZSyntax highlighting for other programming languages within code blocks<div><p>Howdy Fletcher,</p>
<p>Super. Thanks for the response. And thanks for pointing me to the MMD 5 User's Guide. That helps.</p>
<p>Your comment also helped me understand the setting "Automatically link to highlight.js...". Clicking this seems to have given some basic syntax highlighting to the HTML export (<em>very</em> sparse, but presumably there's a setting I can muck around with).</p>
<p>Is there a preference that I can edit which will allow the highlighting to be piped through to the MMD preview, even before export?</p>
<p>Thanks so much for your help.</p>
<p>Peace out,<br>
t</p></div>BobToddtag:support.multimarkdown.com,2013-02-12:Comment/445382302018-01-18T20:01:41Z2018-01-18T20:01:41ZSyntax highlighting for other programming languages within code blocks<div><p>Everything is already in the preview -- but remember that certain<br>
javascript routines only run at certain points in a browser page's<br>
"lifecycle". Many of these routines (e.g. MathJax) run when the page loads, but <em>not</em> when it is modified. In order to force the entire page<br>
to reload so that all javascript runs, you can:</p>
<ul>
<li>Manually refresh the preview from menu bar</li>
<li>Change preview preferences to always do full reload</li>
</ul>
<p>You'll have to decide which approach works best for your particular needs</p>
<p>F-</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/445382302018-01-18T20:09:39Z2018-01-18T20:09:39ZSyntax highlighting for other programming languages within code blocks<div><p>Howdy Fletcher,</p>
<p>Super! Got it! Thanks for walking me through it. That's got me up and running.</p>
<p>Thanks again!</p>
<p>Peace out,<br>
t</p></div>BobTodd