Skip to content

Commit

Permalink
sync file type support with Ace
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloud9 committed Oct 6, 2011
1 parent 79e08ba commit ba99109
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
27 changes: 25 additions & 2 deletions client/ext/code/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,20 @@ var SupportedModes = {
"text/x-script.python": "python",
"text/x-script.ruby": "ruby",
"text/x-script.perl": "perl",
"text/x-script.perl-module": "perl",
"text/x-c": "c_cpp",
"text/x-java-source": "java",
"text/x-groovy": "groovy",
"text/x-csharp": "csharp",
"text/x-script.coffeescript": "coffee",
"text/x-markdown": "markdown",
"text/x-web-textile": "textile",
"text/x-script.ocaml": "ocaml",
"text/x-script.clojure": "clojure"
"text/x-script.clojure": "clojure",
"application/x-latex": "latex",
"text/x-lua": "lua",
"text/x-script.powershell": "powershell",
"text/x-scala": "scala"
};

var contentTypes = {
Expand Down Expand Up @@ -96,12 +102,29 @@ var contentTypes = {
"h": "text/x-c",
"hh": "text/x-c",

"cs": "text/x-csharp",

"java": "text/x-java-source",
"clj": "text/x-script.clojure",
"groovy": "text/x-groovy",
"scala": "text/x-scala",

"ml": "text/x-script.ocaml",
"mli": "text/x-script.ocaml",

"md": "text/x-markdown",
"markdown": "text/x-markdown"
"markdown": "text/x-markdown",
"textile": "text/x-web-textile",
"latex": "application/x-latex",
"tex": "application/x-latex",
"ltx": "application/x-latex",

"lua": "text/x-lua",

"pl": "text/x-script.perl",
"pm": "text/x-script.perl-module",

"ps1": "text/x-script.powershell"
};

module.exports = ext.register("ext/code/code", {
Expand Down
7 changes: 6 additions & 1 deletion client/ext/code/code.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,17 @@
<a:item type="radio" value="application/x-httpd-php">PHP</a:item>
<a:item type="radio" value="text/x-script.ruby">Ruby</a:item>
<a:item type="radio" value="text/x-script.perl">Perl</a:item>
<a:item type="radio" value="text/x-script.powershell">Powershell</a:item>
<a:item type="radio" value="text/x-c">C/C++</a:item>
<a:item type="radio" value="text/x-java-source">Java</a:item>
<a:item type="radio" value="text/x-csharp">C#</a:item>
<a:item type="radio" value="text/x-groovy">Groovy</a:item>
<a:item type="radio" value="text/x-script.clojure">Clojure</a:item>
<a:item type="radio" value="text/x-scala">Scala</a:item>
<a:item type="radio" value="text/x-csharp">C#</a:item>
<a:item type="radio" value="text/x-script.ocaml">OCaml</a:item>
<a:item type="radio" value="text/x-lua">Lua</a:item>
<a:item type="radio" value="text/x-markdown">Markdown</a:item>
<a:item type="radio" value="text/x-web-textile">Textile</a:item>
<a:item type="radio" value="application/x-latex">Latex</a:item>
</a:menu>
</a:application>

0 comments on commit ba99109

Please sign in to comment.