mirror of
https://github.com/cottow/6paster.git
synced 2024-05-19 06:50:10 +00:00
Updated the HTML tags for PHP sourcecode to HTML5
This commit is contained in:
12
tpl/post.php
12
tpl/post.php
@ -2,9 +2,17 @@
|
||||
if (substr($content, 0, 5) == '<?php')
|
||||
{
|
||||
header('Content-type: text/html');
|
||||
echo '<html><body>';
|
||||
echo '<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Paste: PHP sourcecode</title>
|
||||
</head>
|
||||
<body>
|
||||
<main>';
|
||||
highlight_string($content);
|
||||
echo '</body></html>';
|
||||
echo '</main>
|
||||
</body>
|
||||
</html>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user