SublimeCSSTidy
SublimeCSSTidy copied to clipboard
Bundled PHP CSSTidy does not parse on PHP 8, and php is preferred over csstidy.exe
Claude reports: with PHP 8 installed the bundled PHP CSSTidy does not parse, and find_tidier() picks PHP over the bundled csstidy.exe whenever php -v succeeds.
Unpacked the package and ran the plugin's command with PHP 8.4 (Windows 11):
Get-Content t.css -Raw | php -f csstidy.php --
Parse error: syntax error, unexpected token "{", expecting ")" in csstidyphp\class.csstidy.php on line 444
Line 444 uses $string{$i}, curly-brace string offsets, which were removed in PHP 8.0 ($string[$i] works in all versions). The same file on the same CSS through the bundled win\csstidy.exe works (color:red; margin:0; font-weight:700), but the plugin never uses it when any PHP is on PATH.