import { Theme } from 'pretty-html-log' ; import { highlight } from 'pretty-html-log' ; import { removeComments } from '../prettier-util' ; export const prettyPrintHtmlElement = ( htmlElement , enableComments , theme ? ) : void => { console . log ( prettyHtmlElement ( htmlElement , enableComments , theme ) ) ; } ; export const prettyPrintHtmlElements = ( htmlElements , enableComments , theme ? ) : void => { for ( let i = 0 ; i < htmlElements . length ; i ++ ) { console . log ( `--------- HTMLElement ${ i } -----------
        ${ prettyHtmlElement ( htmlElements [ i ] , enableComments , theme ) }
    ` ) ; } } ; export const prettyHtmlElement = ( htmlElement , enableComments , theme ) : string => { return highlight ( enableComments ? htmlElement . innerHTML : removeComments ( htmlElement . innerHTML ) , theme ) ; } ;