diff --git a/HISTORY.md b/HISTORY.md index dc2088d3..64309a86 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -38,6 +38,7 @@ ### 2019-02-04 * BYOB: new experimental feature: special context-aware drop-down menus for custom blocks +* BYOB: identify multi-line input slots by the pilcrow symbol in the slot editor ### 2019-02-01 * BYOB: new experimental feature: special multi-line and monospaced input slot types diff --git a/src/byob.js b/src/byob.js index c52744ac..7735458c 100644 --- a/src/byob.js +++ b/src/byob.js @@ -2604,11 +2604,15 @@ BlockLabelFragment.prototype.defTemplateSpecFragment = function () { } else if (this.defaultValue) { if (this.type === '%n') { suff = ' # = ' + this.defaultValue.toString(); + } else if (contains(['%mlt', '%code'], this.type)) { + suff = ' \u00B6 ' + this.defaultValue.toString(); // pilcrow } else { // 'any' or 'text' suff = ' = ' + this.defaultValue.toString(); } } else if (this.type === '%n') { suff = ' #'; + } else if (contains(['%mlt', '%code'], this.type)) { + suff = ' \u00B6'; // pilcrow } return this.labelString + suff; };