From 228aa4740bf9b1e7cf737f356cf92e549bfcdaf6 Mon Sep 17 00:00:00 2001 From: Connor O'Shea Date: Sun, 15 Sep 2019 20:20:11 -0400 Subject: [PATCH 1/3] Add support for properties (INI) --- resources/js/services/code.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/js/services/code.js b/resources/js/services/code.js index 1e0e48289..7dddc92fd 100644 --- a/resources/js/services/code.js +++ b/resources/js/services/code.js @@ -16,6 +16,7 @@ import 'codemirror/mode/mllike/mllike'; import 'codemirror/mode/nginx/nginx'; import 'codemirror/mode/php/php'; import 'codemirror/mode/powershell/powershell'; +import 'codemirror/mode/properties/properties'; import 'codemirror/mode/python/python'; import 'codemirror/mode/ruby/ruby'; import 'codemirror/mode/rust/rust'; @@ -42,6 +43,7 @@ const modeMap = { haskell: 'haskell', hs: 'haskell', html: 'htmlmixed', + ini: 'text/x-ini', javascript: 'javascript', json: {name: 'javascript', json: true}, js: 'javascript', @@ -54,6 +56,7 @@ const modeMap = { ml: 'mllike', nginx: 'nginx', powershell: 'powershell', + properties: 'text/x-properties', ocaml: 'mllike', php: 'php', py: 'python', From 4ad43b1a1fd8dcd980581f2615730a25981c05e0 Mon Sep 17 00:00:00 2001 From: Connor O'Shea Date: Sun, 15 Sep 2019 20:22:26 -0400 Subject: [PATCH 2/3] Add support for properties --- resources/views/components/code-editor.blade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/views/components/code-editor.blade.php b/resources/views/components/code-editor.blade.php index 31a583182..863cdfd85 100644 --- a/resources/views/components/code-editor.blade.php +++ b/resources/views/components/code-editor.blade.php @@ -24,6 +24,7 @@ Lua PHP Powershell + Properties MarkDown Nginx Python From fca69643db409c028e3f09c8dcdf2cb0f572d824 Mon Sep 17 00:00:00 2001 From: Connor O'Shea Date: Sun, 15 Sep 2019 20:24:47 -0400 Subject: [PATCH 3/3] Normalize ini and properties values --- resources/js/services/code.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/services/code.js b/resources/js/services/code.js index 7dddc92fd..f92752109 100644 --- a/resources/js/services/code.js +++ b/resources/js/services/code.js @@ -43,7 +43,7 @@ const modeMap = { haskell: 'haskell', hs: 'haskell', html: 'htmlmixed', - ini: 'text/x-ini', + ini: 'ini', javascript: 'javascript', json: {name: 'javascript', json: true}, js: 'javascript', @@ -56,7 +56,7 @@ const modeMap = { ml: 'mllike', nginx: 'nginx', powershell: 'powershell', - properties: 'text/x-properties', + properties: 'properties', ocaml: 'mllike', php: 'php', py: 'python',