:verse: +{G}i heard that you'll {D} settle down that you'v{Em}e found a girl and you'{C}re married now {G}+i heard that your d{D}reams came true guess she {Em}gave you things i didn't {C}give to you old {G} friend why are you {D}so shy it ain't like {Em}you to hold back or {C}hide from the light EOD; $tlac = new TLAC(); $html = $tlac->toHtml($text); echo <<<EOD <!DOCTYPE html> <html> <head> <title>Title of the document</title> <link rel="stylesheet" type="text/css" href="chords.css"> </head> <body> {$html} </body> </html> EOD ;
<?php ini_set('display_errors', 'on'); // set up autoloading require '../vendor/autoload.php'; use ludviki\TLAC\TLAC; $song = file_get_contents(__DIR__ . '/text.txt'); $tlac = new TLAC(); $html = $tlac->toHtml($song); echo <<<EOD <!DOCTYPE html> <html> <head> <title>TLAC Example</title> <link rel="stylesheet" type="text/css" href="chords.css"> </head> <body> {$html} </body> </html> EOD ;