You can also update php.ini to include HTML code for formatting.
html_errors = On error_prepend_string = "<pre style='color: #333; font-face:monospace; font-size:8pt;'>" error_append_string = "</pre>"
Or, if you want to install them at runtime, include the following at the beginning of script (s)
ini_set("html_errors", 1); ini_set("error_prepend_string", "<pre style='color: #333; font-face:monospace; font-size:8pt;'>"); ini_set("error_append_string ", "</pre>");
source share