From 8a8bc206dba57d648f4b533f860bbc1ee8f1f3e3 Mon Sep 17 00:00:00 2001 From: Juti Noppornpitak Date: Mon, 19 Jan 2015 16:30:38 -0500 Subject: [PATCH] Add the missing mode "Django" to ext-modelist This is to add Django as an alternative mode for HTML files. The placement of the entry is to ensure that Django syntax highlighter does not override HTML syntax highlighter. --- lib/ace/ext/modelist.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ace/ext/modelist.js b/lib/ace/ext/modelist.js index cba800ac..db2d2f80 100644 --- a/lib/ace/ext/modelist.js +++ b/lib/ace/ext/modelist.js @@ -161,7 +161,9 @@ var supportedModes = { VHDL: ["vhd|vhdl"], XML: ["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl"], XQuery: ["xq"], - YAML: ["yaml|yml"] + YAML: ["yaml|yml"], + // Add the missing mode "Django" to ext-modelist + Django: ["html"] }; var nameOverrides = {