Skip to content

Commit bed25fe

Browse files
committed
Enabled syntax highlighting for xml
1 parent ab802bc commit bed25fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/modules/IDE/components/Editor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class Editor extends React.Component {
283283
mode = 'javascript';
284284
} else if (fileName.match(/.+\.css$/i)) {
285285
mode = 'css';
286-
} else if (fileName.match(/.+\.html$/i)) {
286+
} else if (fileName.match(/.+\.(html|xml)$/i)) {
287287
mode = 'htmlmixed';
288288
} else if (fileName.match(/.+\.json$/i)) {
289289
mode = 'application/json';

0 commit comments

Comments
 (0)