change: improve number highlight in code block
This commit is contained in:
parent
65f55a65e8
commit
b174f7b727
2
main.js
2
main.js
|
@ -2174,7 +2174,7 @@ function applycolors()
|
||||||
}
|
}
|
||||||
else if (code)
|
else if (code)
|
||||||
{
|
{
|
||||||
line = line.replace(/(\d+)/g, "<span style='color:" + settings.accentcolor + "'>$1</span>");
|
line = line.replace(/\b(\d+)\b/g, "<span style='color:" + settings.accentcolor + "'>$1</span>");
|
||||||
if (languagekeywords[language])
|
if (languagekeywords[language])
|
||||||
{
|
{
|
||||||
var keywords = languagekeywords[language];
|
var keywords = languagekeywords[language];
|
||||||
|
|
Loading…
Reference in New Issue