change: improve number highlight in code block

This commit is contained in:
quenousimporte 2023-10-03 11:40:36 +02:00
parent 65f55a65e8
commit b174f7b727
1 changed files with 1 additions and 1 deletions

View File

@ -2174,7 +2174,7 @@ function applycolors()
}
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])
{
var keywords = languagekeywords[language];