PHP code example of markstory / geshi
1. Go to this page and download the library: Download markstory/geshi library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
markstory / geshi example snippets
Plugin::load('Geshi');
public $helpers = ['Geshi.Geshi'];
public $helpers = [
'Geshi.Geshi' => [
'set_header_type' => ['GESHI_FANCY_LINE_NUMBERS', 5]
]
];
$this->Geshi->setConfig('features', [
'geshi_function_name' => ['geshi_parameter', list, values]
]);
html
<pre lang="php">
echo 'hi'
</pre>