From: Connor O'Shea Date: Mon, 16 Sep 2019 00:20:11 +0000 (-0400) Subject: Add support for properties (INI) X-Git-Tag: v0.28.0~1^2~66^2~2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/228aa4740bf9b1e7cf737f356cf92e549bfcdaf6 Add support for properties (INI) --- 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',