Add alternate array index style, with setting
This commit is contained in:
@@ -195,7 +195,11 @@ class TreeList implements Countable, IteratorAggregate
|
||||
}." ";
|
||||
}
|
||||
echo (is_int($entry->key)
|
||||
?"\e[36;2m\u{e0b6}\e[7m#{$entry->key}\e[27m\u{e0b4}\e[22;37m "
|
||||
|
||||
?(Settings::$highlightIndices
|
||||
?"\e[36;2m\u{e0b6}\e[7m#{$entry->key}\e[27m\u{e0b4}\e[22;37m "
|
||||
:"\e[36;2m#{$entry->key}\e[22;37m "
|
||||
)
|
||||
:(Settings::$editorQuotedKeys
|
||||
? "\e[36m\"{$entry->key}\":\e[37m "
|
||||
: "\e[36m{$entry->key}:\e[37m "
|
||||
|
||||
Reference in New Issue
Block a user