Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Dec 26, 2024
1 parent 3bac018 commit d066160
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions function/crt.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@

function crtprompt()
{
echo('<span class="crtprompt">$ </span>');
echo('<kbd>$ </kbd>');
}

function crtin($s)
{
crtprompt();
echo("<span class='crtin'>");
echo("<code>");
echo($s);
echo("</span>");
echo("</code>");
}

function crtout($s)
{
echo("<span class='crtout'>");
echo("<samp>");
echo($s);
echo("</span>");
echo("</samp>");
}

function crt()
{
$p=0;
echo("<ul><pre class=\"bg-light text-dark\"><code>");
echo("<pre class=\"p-3 mb-2 text-body-secondary bg-body-tertiary\"");
$arg_list = func_get_args();
for ($i = 0; $i < func_num_args(); $i++) {
if ($p == 0) {
Expand All @@ -33,7 +33,7 @@ function crt()
}
$p = 1-$p;
}
echo("</code></pre></ul>");
echo("</pre>");
}
?>

0 comments on commit d066160

Please sign in to comment.