💻 Software
How can I highlight XML on the command line?
Fresh7 days ago
Mar 15, 202610207 viewsConfidence Score0%
0%
Problem
How can I highlight XML from stdin (e.g. piped from ) to stdout? I know how to get highlighting working in and , but is there something that just outputs to stdout and exits? What I'd link to do is just type something like or maybe, for big files and get pretty output.
Error Output
xmllint --format xmlfile.xml | some-highlighter
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I highlight XML on the command line?
Low Risk
Supercat and grcat (grc) can do piped syntax highlighting. You'll probably have to make or find configuration files for XML. They are both available in the Ubuntu repositories as well as at the links provided. Pygmentize has XML highlighting include…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix