but I would also like to color it with string replacements or something else
For the moment only <php + ?> is highlighted +
info code with // enter text is highlighted
The code aply from a text-file into the document.
Code: Select all
<?php
$res = $MySQLiconn->query("SELECT * FROM `userfiles` where code_id='$id' ORDER BY `ID` DESC ");
$count = $res->num_rows;
if($count > 0)
{
while($row=$res->fetch_array())
{
?>
Code: Select all
<?php
ini_set("highlight.comment", "#008000");
ini_set("highlight.default", "#000000");
ini_set("highlight.html", "#808080; font-size: 16px;");
ini_set("highlight.keyword", "#0000BB; font-weight: bold");
ini_set("highlight.string", "#DD0000");
?>
Code: Select all
<?php show_source("$row[FilePath]/Files--PHP-HTML-CODE/$row[code_file]/$row[FileName]"); ?>
145.53.93.209/Molendijk/Source/upload/Show/Maps/source.php?id=530835