aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorAnanya Sen2012-04-26 12:26:31 -0700
committerAnanya Sen2012-04-26 12:26:31 -0700
commitb680af490b9736d16ed491c999af3f06d78a7d18 (patch)
tree0f2cca5618e9cfd58fbd250ef842996e79c5fd6d /js/stage
parent45bddda788afc27094b781d0823f821a421e0934 (diff)
downloadninja-b680af490b9736d16ed491c999af3f06d78a7d18.tar.gz
IKNINJA-1551 - added editor support for other file types
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/stage-view.reel/stage-view.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/stage/stage-view.reel/stage-view.js b/js/stage/stage-view.reel/stage-view.js
index 53c6125b..dcc84a35 100755
--- a/js/stage/stage-view.reel/stage-view.js
+++ b/js/stage/stage-view.reel/stage-view.js
@@ -88,6 +88,27 @@ exports.StageView = Montage.create(Component, {
88 case "js" : 88 case "js" :
89 type = "javascript"; 89 type = "javascript";
90 break; 90 break;
91 case "html" :
92 type = "htmlmixed";
93 break;
94 case "json" :
95 type = "javascript";
96 break;
97 case "php" :
98 type = "php";
99 break;
100 case "pl" :
101 type = "perl";
102 break;
103 case "py" :
104 type = "python";
105 break;
106 case "rb" :
107 type = "ruby";
108 break;
109 case "xml" :
110 type = "xml";
111 break;
91 } 112 }
92 document.getElementById("codeMirror_"+doc.uuid).style.display="block"; 113 document.getElementById("codeMirror_"+doc.uuid).style.display="block";
93 114