NetStacksNetStacks

Highlight Rules

Color and emphasize terminal output with regex-based highlight rules — make errors, interface states, and key fields jump out across every session.

Overview

Device output is dense. Highlight rules let you apply color to text that matches a pattern — so down, err-disabled, CRC counters, or a hostname convention are visually obvious instead of scrolling past.

How Rules Work

A rule pairs a regular expression with a color/style. When matching text appears in the terminal, it is rendered with that style. Rules are evaluated to produce the effective styling for a session, so you can layer general and specific rules.

Tip

Highlight rules are about readability; they don't change device behavior or output — only how it is displayed to you.

Global vs Session Scope

Define rules globally so they apply everywhere, or scope them so they only affect particular sessions — useful when a vendor or platform needs its own emphasis patterns.

Q&A

Q: Is this the same as themes?
A: No. Themes set the overall color scheme; highlight rules color specific content by pattern on top of the theme.
Q: Do rules modify what the device sees?
A: No. They only affect local rendering.