I would like to have all php notices yellow, warnings orange and fatal errors red.
I’m thinking of a method that could be implemented in any class and, in case of error, would change outputs color. Maybe wrap around <span style="class:color">$error</span> or similar.
Any ideas/suggestions/pointers how to achieve that?
If you haven’t already, try Xdebug first. Learn to love that Xdebug orange and save yourself a ton of grief implementing a custom color-coded error handler.