Search the Community
Showing results for tags 'beautifier'.
I make plugins for WordPress and am dissatisfied with the built-in editor. I'm now looking for a way to format the PHP code like TIDY does in AU3-Editor. I've already tried some online tools but they are buggy or have too few formatting options. Buggy: http://www.phpformatter.com/ Missing options: https://homepage-kosten.de/php_beautifier.php Here is the code to check if the beautifier is buggy: <?php /* Version: 2021.08.08#1 */ exit ( ' Version is: ' . chop ( substr ( file ( __FILE__ ) [ 2 ] , 9 , 13 ) ) ) ; /* Output from PHP Formatter: Format Error on li
..so I got Notepad++ but was not working with the xml printing plugin, the online beautifiers would no work all the time, and I wanted like Tidy does with tabs so it looks nice in Scite to look at the code and make my own template for a script I'm working on....very frustrating and time consuming, so, I put this code together. I get in a 10th of a sec. the xml prettified vs. minutes and frustration. Anyway, how I use it is I drag and drop the word doc. ( saved in XML format ) to scite , copy to the clipboard ( ctrl-A, ctrl-C ) , switch to this code, press F5 and I'm happy If Not StringInSt