<!DOCTYPE html>
<meta charset="utf-8">
<?php
require_once 'DisplaySourceFile.php';
//ShowFileのshowHightlightメソッドをdisplayで呼び出せるようにする
try {
$showFile = new DisplaySourceFile('hello.php');
} catch (Exception $e) {
die($e->getMessage());
}
$showFile->display();
/*
//ShowFileの本来の使い方
require_once 'ShowFile.php';
try {
$showFile = new ShowFile('hello.php');
} catch (Exception $e) {
die($e->getMessage());
}
$showFile->showPlain();
echo '<hr />';
$showFile->showHightlight();
*/