@Edent Do you have plans to encapsulate it into a class and distribute it via Composer?
@tomkyle I've never done that before. If you'd like to help, please send a PR to the gitlab 😃
@Edent See https://gitlab.com/edent/pretty-print-html-using-php/-/merge_requests/1