Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit fa9804d

Browse files
author
mikesamuel
committed
added mxml as file extension alias for xml
1 parent 6a428d0 commit fa9804d

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

CHANGES.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,15 @@ <h2>14 Jul 2008</h2>
6060
<h2>6 Jan 2009</h2>
6161
<ul>
6262
<li>Language handlers for Visual Basic, Haskell, and WikiText</li>
63+
<li>Added <tt>.mxml</tt> extension to the markup style handler for
64+
Flex <a href="http://en.wikipedia.org/wiki/MXML">MXML files</a>. See
65+
<a
66+
href="http://code.google.com/p/google-code-prettify/issues/detail?id=37"
67+
>issue 37</a>.
6368
<li>Added <tt>.m</tt> extension to the C style handler so that Objective
64-
C source files properly highlight. See <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=58"
69+
C source files properly highlight. See
70+
<a
71+
href="http://code.google.com/p/google-code-prettify/issues/detail?id=58"
6572
>issue 58</a>.
6673
</ul>
6774
</body>

README.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ <h3>How do I specify which language my code is in?</h3>
9999
>&lt;pre class=&quot;prettyprint <b>lang-html</b>&quot;&gt;
100100
The lang-* class specifies the language file extensions.
101101
File extensions supported by default include
102-
"c", "cc", "cpp", "cs", "cyc", "java", "bsh", "csh", "sh",
103-
"cv", "m", "py", "perl", "pl", "pm", "rb", "js",
104-
"html", "html", "xhtml", "xml", "xsl".
102+
"bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html",
103+
"java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh",
104+
"xhtml", "xml", "xsl".
105105
&lt;/pre&gt;</pre>
106106

107107
<h3>It doesn't work on <tt>&lt;obfuscated code sample&gt;</tt>?</h3>

src/prettify.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,8 +1093,9 @@ function _pr_isIE6() {
10931093
}
10941094
}
10951095
registerLangHandler(decorateSource, ['default-code']);
1096-
registerLangHandler(decorateMarkup,
1097-
['default-markup', 'html', 'htm', 'xhtml', 'xml', 'xsl']);
1096+
registerLangHandler(
1097+
decorateMarkup,
1098+
['default-markup', 'htm', 'html', 'mxml', 'xhtml', 'xml', 'xsl']);
10981099
registerLangHandler(sourceDecorator({
10991100
keywords: CPP_KEYWORDS,
11001101
hashComments: true,

0 commit comments

Comments
 (0)