You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code-input.d.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ export namespace plugins {
183
183
* Create a special characters plugin instance.
184
184
* Default = covers many non-renderable ASCII characters.
185
185
* @param {Boolean} colorInSpecialChars Whether or not to give special characters custom background colors based on their hex code
186
-
* @param {Boolean} inheritTextColor If `colorInSpecialChars` is false, forces the color of the hex code to inherit from syntax highlighting. Otherwise, the base color of the `pre code` element is used to give contrast to the small characters.
186
+
* @param {Boolean} inheritTextColor If `inheritTextColor` is false, forces the color of the hex code to inherit from syntax highlighting. Otherwise, the base color of the `pre code` element is used to give contrast to the small characters.
187
187
* @param {RegExp} specialCharRegExp The regular expression which matches special characters
Copy file name to clipboardExpand all lines: plugins/special-chars.js
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ codeInput.plugins.SpecialChars = class extends codeInput.Plugin {
14
14
* Create a special characters plugin instance.
15
15
* Default = covers many non-renderable ASCII characters.
16
16
* @param {Boolean} colorInSpecialChars Whether or not to give special characters custom background colors based on their hex code
17
-
* @param {Boolean} inheritTextColor If `colorInSpecialChars` is false, forces the color of the hex code to inherit from syntax highlighting. Otherwise, the base colour of the `pre code` element is used to give contrast to the small characters.
17
+
* @param {Boolean} inheritTextColor If `inheritTextColor` is false, forces the color of the hex code to inherit from syntax highlighting. Otherwise, the base color of the `pre code` element is used to give contrast to the small characters.
18
18
* @param {RegExp} specialCharRegExp The regular expression which matches special characters
19
19
*/
20
20
constructor(colorInSpecialChars=false,inheritTextColor=false,specialCharRegExp=/(?!\n)(?!\t)[\u{0000}-\u{001F}]|[\u{007F}-\u{009F}]|[\u{0200}-\u{FFFF}]/ug){// By default, covers many non-renderable ASCII characters
@@ -71,6 +71,7 @@ codeInput.plugins.SpecialChars = class extends codeInput.Plugin {
0 commit comments