Refactor of prettifying the reports with syntax highlight