Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerdinand Thiessen <rpm@fthiessen.de>2022-07-19 16:43:35 +0300
committerFerdinand Thiessen <rpm@fthiessen.de>2022-07-19 16:51:53 +0300
commitd8abe1d5f995902fe5815d11e10295b51404cb86 (patch)
tree28c9c1e43fe5ca1946e4e45c24caaeb37aa1c902
parentdf288591d9480481b9ed3b17dc429a2ff167bfbf (diff)
Add filetype mapping for txt to plaintext
This reduces the console output as everytime a txt file is loaded a exception is printed out that no matching language mapping is found for txt. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
-rw-r--r--src/helpers/mappings.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helpers/mappings.js b/src/helpers/mappings.js
index bbee0ac8c..b209495a2 100644
--- a/src/helpers/mappings.js
+++ b/src/helpers/mappings.js
@@ -89,6 +89,7 @@ const extensionHighlight = {
ml: 'ocaml',
rs: 'rust',
sci: 'scilab',
+ txt: 'plaintext',
vb: 'vbnet',
vbs: 'vbscript',
}