htmlToCodeMarkup function
Converts the DOM tree into an HTML string with code markup suitable for displaying the HTML's source code with CSS colors for different parts of the markup. See also CodeMarkupVisitor.
Implementation
String htmlToCodeMarkup(Node node) {
return (CodeMarkupVisitor()..visit(node)).toString();
}