Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Enabled Haxe mode (with syntax highlighting) #2075

Merged
merged 1 commit into from
Dec 19, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/editor/EditorUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ define(function (require, exports, module) {
require("thirdparty/CodeMirror2/mode/diff/diff");
require("thirdparty/CodeMirror2/mode/markdown/markdown");
require("thirdparty/CodeMirror2/mode/yaml/yaml");
require("thirdparty/CodeMirror2/mode/haxe/haxe");

/**
* @private
Expand Down Expand Up @@ -158,6 +159,9 @@ define(function (require, exports, module) {
case "yaml":
case "yml":
return "yaml";

case "hx":
return "haxe";

default:
console.log("Called EditorUtils.js _getModeFromFileExtensions with an unhandled file extension: " + ext);
Expand Down