code styling for the active node

This commit is contained in:
nadrad 2022-09-10 10:59:22 +02:00
parent caf91877c7
commit 6aaac9200d

25
h-m-m
View file

@ -2193,11 +2193,17 @@ function display(&$mm, $force_center = false)
.reset_color
.mb_substr($line, $x2)
;
else // styling the codes when the node is not active
$line =
mb_ereg_replace
(
'\b(.\d)\. '
,dim_on.'\\1. '.dim_off
,$line
)
;
// this is here, because it doesn't need coordinates.
// only inverting instead of giving another color,
// because, otherwise, it would conflict with the active
// node's highlight and it's a little complicated to fix.
// styling the search results
if ($mm['query'] ?? '' != '')
$line =
@ -2236,17 +2242,6 @@ function display(&$mm, $force_center = false)
)
;
// styling the codes
$line =
mb_ereg_replace
(
'\b(.\d)\. '
,dim_on.'\\1. '.dim_off
,$line
)
;
// styling "???"
$line =