Skip to content

Commit

Permalink
add PHP support
Browse files Browse the repository at this point in the history
  • Loading branch information
fjakobs committed Dec 17, 2010
1 parent b7c0a26 commit 72e0f35
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions client/ext/code/code.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"text/html": "html",
"application/xhtml+xml": "html",
"application/xml": "xml",
"application/x-httpd-php": "php",
"text/x-script.python": "python",
"text/x-script.coffeescript": "python" // TODO
}
Expand Down Expand Up @@ -62,5 +63,6 @@
<a:item type="radio" value="text/html">(X)HTML</a:item>
<a:item type="radio" value="application/xml">XML</a:item>
<a:item type="radio" value="text/x-script.python">Python</a:item>
<a:item type="radio" value="application/x-httpd-php">PHP</a:item>
</a:menu>
</a:application>
3 changes: 2 additions & 1 deletion client/ext/editors/editors.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ return ext.register("ext/editors/editors", {
"html" : "text/html",
"xhtml" : "application/xhtml+xml",
"coffee" : "text/x-script.coffeescript",
"py" : "text/x-script.python"
"py" : "text/x-script.python",
"php" : "application/x-httpd-php"
},

getContentType : function(file) {
Expand Down
1 change: 1 addition & 0 deletions client/ext/filesystem/files.xml
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ fu.mime = {
, ".ps" : "application/postscript"
, ".psd" : "image/vnd.adobe.photoshop"
, ".py" : "text/x-script.python"
, ".php" : "application/x-httpd-php"
, ".qt" : "video/quicktime"
, ".ra" : "audio/x-pn-realaudio"
, ".rake" : "text/x-script.ruby"
Expand Down
2 changes: 1 addition & 1 deletion client/ext/filesystem/filesystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ return ext.register("ext/filesystem/filesystem", {
}
},

createFile: function(filename, contenttype) {
createFile: function(filename) {
var node = trFiles.selected;
if (!node)
node = trFiles.xmlRoot.selectSingleNode("folder");
Expand Down
1 change: 1 addition & 0 deletions client/ext/newresource/newresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
<a:item value="xml" icon="page_white_code_red.png">XML file</a:item>
<a:item value="css" icon="css.png">CSS file</a:item>
<a:item value="py" icon="script_code.png">Python file</a:item>
<a:item value="php" icon="page_white_php.png">PHP file</a:item>
</a:menu>
</a:application>
1 change: 1 addition & 0 deletions client/ext/tree/tree.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"text/plain": 'page_white_text',
"application/javascript": 'page_white_code',
"text/x-script.python": 'script_code',
"application/x-httpd-php": 'page_white_php',
"text/x-script.coffeescript": 'script_code'
};
Expand Down
2 changes: 1 addition & 1 deletion support/jsdav
Submodule jsdav updated from 918ab9 to 44f6ed

0 comments on commit 72e0f35

Please sign in to comment.