From 0614aa2eee6b5556b04f7d5bb11eee5af28982c2 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 18 Apr 2018 19:33:36 +0300 Subject: [PATCH] new editor option: selectByTokens implements #361 except for toggling via Ctrl --- _locales/en/messages.json | 7 +++++++ edit.html | 7 +++++++ edit/codemirror-default.js | 15 ++++++++++++++- js/prefs.js | 1 + 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 0d1ca784..49f3169b 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -139,6 +139,13 @@ "message": "Colorpickers for CSS colors", "description": "Label for the checkbox controlling colorpicker option for the style editor." }, + "cm_selectByTokens": { + "message": "Double-clicking selects tokens", + "description": "Label for the checkbox in the editor." + }, + "cm_selectByTokensTooltip": { + "message": "Examples of tokens: .foo-bar-2 #aabbcc 0.32 !important\nWhen disabled: punctuation-delimited words are selected." + }, "cm_indentWithTabs": { "message": "Use tabs with smart indentation", "description": "Label for the checkbox controlling tabs with smart indentation option for the style editor." diff --git a/edit.html b/edit.html index 29ff7666..2995dec8 100644 --- a/edit.html +++ b/edit.html @@ -311,6 +311,13 @@ +
+ +