PHP code example of diplix / html-pretty

1. Go to this page and download the library: Download diplix/html-pretty library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

diplix / html-pretty example snippets


return [
    'diplix.html-pretty.minifyJs' => true,        // Minify JavaScript (default: true)
    'diplix.html-pretty.minifyCss' => true,       // Minify CSS (default: true)
    'diplix.html-pretty.removeComments' => true,  // Remove HTML comments (default: true)
    'diplix.html-pretty.indentCharacters' => '    ', // Indentation characters (default: 4 spaces)
];