htmlToCodeMarkup function

String htmlToCodeMarkup(
  1. Node node
)

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();
}