custom highlight code
Posted: 22 Dec 2020, 07:06
Hello Coursesweb I try to update my highlight code from ini_set
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.
I would like in the output an complete highlighted file as result now it only one part.
Here is an example from the result (Only the php code in result is highlighted).
145.53.93.209/Molendijk/Source/upload/Show/Maps/source.php?id=530835
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