adamsmasher
Active member
I'm not sure where it's getting that URL since we definitely don't have a forum called "-".
$geshi->set_link_target('_blank" rel="nofollow');
$geshi->set_header_type(GESHI_HEADER_NONE);
$geshi->set_tab_width(4);
$geshi->enable_classes(true);
$geshi->set_overall_class('geshi');
$content = $geshi->parse_code();
/*
* Geshi stylesheet
*
* CyberAsylum.eu
* dark theme by niekto@niekde.sk (Jaroslav Petras)
* there is no licence and you can use it, copy it, sell it
* or burn it
*
*/
div.bbCodeBlock
{ background: @pageBackground !important; }
/* all */
.geshi
{ border: none !important; }
/* lines */
.geshi .li1
{ background: @pageBackground !important; }
.geshi .li2
{ background: @pageBackground !important; }
/* brackets */
.geshi .br0
{ color: #bfbfbf !important; }
/* comments */
.geshi .co0,
.geshi .co1,
.geshi .coMULTI
{ color: #7a7a75 !important; }
/* strings */
.geshi .st0,
.geshi .st_h
{ color: #ff4444 !important; }
/* methods */
.geshi .me0,
.geshi .me1
{ color: #ffffff !important; }
.geshi .me2
{ color: #ffcc66 !important; }
/* keywords */
.geshi .kw1
{ color: #99ee00 !important; }
.geshi .kw2
{ color: #eeaa22 !important; }
.geshi .kw3
{ color: #dd88ff !important; }
.geshi .kw4
{ color: #ff7744 !important; }
/* operators */
.geshi .sy0
{ color: #44ffbb !important; }
/* numbers */
.geshi .nu0
{ color: #ff2288 !important; }
/* variables */
.geshi .re0
{ color: #88c0ff !important; }
.geshi .re1
{ color: #88c0ff !important; }
.geshi .re2
{ color: #ccddff !important; }
.geshi .re3
{ color: #88c0ff !important; }
.geshi .re4
{ color: #88c0ff !important; }
.geshi .re5
{ color: #ddddff !important; }
/* EOF */
The PHP7 stuff is from within the geshi library files. Last I checked they had not updated it yet.Hi all,
Is there a plan to make it compliant with php 7?
Thanks
David
No, it's designed for posts, sorry.I would like to do syntax highlighting with this addon on a page node. Is this possible and if yes, how?
FYI, I have replaced the geshi folder content & geshi.php files in your add-on by the ones provided in Geshi 1.0.9.0 release and it seems to work on my website in production with PHP 7.
Great!
David
We use essential cookies to make this site work, and optional cookies to enhance your experience.