There are attempts to make HTML code more readable for the human eye, like this recently announced software:
Introducing Pretty Print HTML for PHP 8.4
I'm delight to announce the first release of my opinionated HTML Pretty Printer for new versions of PHP. Grab the code from Packagist Contribute on GitLab There are several prettifiers on Packagist, but I think mine is the only one which works with the new Dom\HTMLDocument class.
This made me think: why bother making you code more human readable? Why not instead build into the browsers "View Source" window one ore more options to "prettify" or "make more readable" the original source code? This way, we don't need to fix millions of broken pages. And also we can view the source code without much hassle. 😊
Your thoughts please?
No comments:
Post a Comment