PHP code example of conquer / highlightjs

1. Go to this page and download the library: Download conquer/highlightjs 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/ */

    

conquer / highlightjs example snippets


use conquer\highlightjs\HighlightjsWidget;

<?= HighlightjsWidget::widget([
    'language' => 'xml',
    'content' => file_get_contents('some_xml_file.xml'),
]); 

$ php composer.phar