mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
18 lines
306 B
PHP
18 lines
306 B
PHP
<?php
|
|
|
|
namespace App\Services\Helpers;
|
|
|
|
use Phiki\Grammar\Grammar;
|
|
use Phiki\Phiki;
|
|
use Phiki\Theme\Theme;
|
|
|
|
class CodeHelper
|
|
{
|
|
public static function formatHtml(string $code): string
|
|
{
|
|
$phiki = new Phiki;
|
|
|
|
return $phiki->codeToHtml($code, Grammar::Html, Theme::GithubDark);
|
|
}
|
|
}
|