It's been awhile since I last posted.
I did complete my first project using My CSS Framework (I call it CSS Blade). It went as expected, rapid deployment. I did need to fix a few things along the way. I also ran into some other problems, unrelated to My CSS Framework.
One of the scripts I wrote needed some minor fixing. Not sure what happened to the second one, but the script I ended up using was the wrong one. Somehow, I ended up copying an older script that kept breaking my HTML pages. That was an HTML Beautifier script.
My goal is to just simply have proper indentation of HTML (or at least close) to make it easer to read. I'm not interested in a software to fix anything or validate to HTML or XHTML standards. I'm not interested in code completion or fixing unbalanced tags.
Some of you may recall another article where I discussed the problems with PHP Tidy, DOM Document (and a few others). All of these tools go well beyond my needs (and by the complaints about them, go well beyond the needs of most people).
If you do a search on "HTML Beautifier -online" (a online tool is sort of useless for inline streaming beautifying) you'll end up with only two or three PHP scripts, and a handful of Javascript scripts to handle the task. I've tried them all ... quite frankly, why they are posted for public downloading is beyond me. One was so bad that by the time you reached the bottom of the page, the indent level was nasty long.
I did find "beautify-html.php" that was a Javascript port by Ivan Weiler. The package is now MIT licensed with a copyright by Einar Lielmanis. I had previously used this with my own modifications. And, that's the script I thought I was using in my most recent project. Unfortunately, I copied the wrong file and ended up with a script that I had originally written as a test ... it's based on DOM Document. Of course, it wasn't up to the task I had defined, so it broke my HTML pages up badly. None of the scripts worked, none of the icon fonts displayed properly.
I went back to the beautify-html.php script I had modified and it worked. Almost perfectly. There were several artifacts created by my modified script that were not good. "beautify-html.php" is so good for so much of the page. The script is now 10 years old, the last update was 2 years ago (by a user removing an unused function) ... I decided to completely re-write the script. And, please note: the original script header is intact, I attribute the port as was original, and attribute the copyright as found in the lastest upload. I added my copyright (for 2024). I found two additional functions that were unused and removed those. I renamed the class. I added new properties ... most to replace the need to set options. And I added some new functionality as well.
This new script now works perfectly and is more generic ... that is my initial modifications were more targetted to a certain type of PHP script. This new version will work with any PHP script generating any type of HTML. With or without minified CSS and with or without minified Javascript ... even a mix of both raw and minifed will work.
Now, back to focusing on the CSS stuff.
By the way, the first project using My CSS Framework is a robust PHP web application. It isn't a website, and it's currently proprietary to the client.