PHP code example of totten / pogo

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

    

totten / pogo example snippets


#!


$code = file_get_contents('php://stdin');

#!tectLanguages(['php', 'css', 'yaml', 'json', 'js']);
$highlighted = $hl->highlightAuto($code);
$html = sprintf('<link rel="stylesheet" href="file://%s"/>', \HighlightUtilities\getStyleSheetPath('sunburst.css'));
$html .= sprintf("<pre><code class=\"hljs %s\">%s</code></pre>", $highlighted->language, $highlighted->value);

#!
bash
pogo code2pdf.php
bash
cat myfile.yml | pogo code2pdf.php > myfile.pdf