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

Commit 6a428d0

Browse files
author
mikesamuel
committed
Added .m extension for objective C to list of C style languages
1 parent 9ae3b7b commit 6a428d0

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGES.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ <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>.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"
65+
>issue 58</a>.
6366
</ul>
6467
</body>
6568
</html>

README.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h3>How do I specify which language my code is in?</h3>
100100
The lang-* class specifies the language file extensions.
101101
File extensions supported by default include
102102
"c", "cc", "cpp", "cs", "cyc", "java", "bsh", "csh", "sh",
103-
"cv", "py", "perl", "pl", "pm", "rb", "js",
103+
"cv", "m", "py", "perl", "pl", "pm", "rb", "js",
104104
"html", "html", "xhtml", "xml", "xsl".
105105
&lt;/pre&gt;</pre>
106106

src/prettify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ function _pr_isIE6() {
10991099
keywords: CPP_KEYWORDS,
11001100
hashComments: true,
11011101
cStyleComments: true
1102-
}), ['c', 'cc', 'cpp', 'cxx', 'cyc']);
1102+
}), ['c', 'cc', 'cpp', 'cxx', 'cyc', 'm']);
11031103
registerLangHandler(sourceDecorator({
11041104
keywords: CSHARP_KEYWORDS,
11051105
hashComments: true,

0 commit comments

Comments
 (0)