Commit a211c26fea7e8314b44ec477c899e3328e2c081b

Daniel Flint 2014-02-22T22:28:12

Fix Issue #200 - map 'xml' extension to 'markup', and 'py' to 'python' (can't explain the OP saying the Python example worked, I can't even see the example, and couldn't replicate).

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/plugins/file-highlight/prism-file-highlight.js b/plugins/file-highlight/prism-file-highlight.js
index 75a7bc0..ff1ec24 100644
--- a/plugins/file-highlight/prism-file-highlight.js
+++ b/plugins/file-highlight/prism-file-highlight.js
@@ -7,7 +7,9 @@ if (!self.Prism || !self.document || !document.querySelector) {
 var Extensions = {
 	'js': 'javascript',
 	'html': 'markup',
-	'svg': 'markup'
+	'svg': 'markup',
+	'xml': 'markup',
+	'py': 'python'
 };
 
 Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function(pre) {