Created
October 6, 2013 05:02
-
-
Save chrisparnin/6849751 to your computer and use it in GitHub Desktop.
Syntax highlighting for Markdown Pad.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://cdnjs.cloudflare.com/ajax/libs/prettify/r224/prettify.css" type="text/css" rel="stylesheet" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> | |
</script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r224/prettify.js"> | |
</script> | |
<script> | |
$(document).ready(function() | |
{ | |
$("pre").addClass("prettyprint"); | |
prettyPrint(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry to bug you, but this comes up first in Goggle...
In MarkdownPad 2.5 it is supported natively (only in Pro version, though)
Then you can just use fenced block with language name as you usually use on Github. E.g.
Is rendered as
Seem to work both in preview window and after exporting to HTML. Although preview is on-line, exported HTML is off-line (i.e. CSS is included in-line in the HTML).