Firefox PHP

Module: BBcode GeSHi (code syntax highlighting)

Posted by Maurice Makaay 
Error on formatting some languages
October 27, 2009 07:00PM
When Groovy or Java 5 code is formatted, the code is cluttered with parts of URLs.

Instead of
class Box
I see
class 5.0%2Fdocs%2Fapi%2F">Box
Real life example: [www.groovy-forum.de] (BBcode GeSHi (code syntax highlighting) (version 1.0.3))
Re: Error on formatting some languages
October 27, 2009 08:38PM
Sounds like an issue with the GeSHi library. Did you check if this is a known issue for GeSHI?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Error on formatting some languages
November 14, 2009 09:57AM
Thanks for your reply. It looks to me like a GeSHi bug too. I reported this bug.
Re: Error on formatting some languages
November 14, 2009 02:05PM
Keep me posted. If something's fixed in GeSHi, I will upgrade the package.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: BBcode GeSHi (code syntax highlighting)
December 01, 2009 10:26AM
The error status is still "unresolved" but maybe it is fixed in GeSHi 1.1.1 [sourceforge.net]. I'd test it, if you would make a package with this version.
Re: Module: BBcode GeSHi (code syntax highlighting)
December 01, 2009 11:09AM
GeSHi 1.1.1 is from June 2006.
The included GeSHi 1.0.8.4 is from May 2009, I doubt that 1.1.1 fixes that.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Error on formatting some languages
June 08, 2010 08:05AM
GeShi 1.0.8.5 fixes the error with the HTML fragments in the source code. I'm looking foward to a new version of the plugin.
Re: Error on formatting some languages
June 08, 2010 11:59AM
Thanks for the notice. I upgraded the package. It now contains version 1.0.8.8 of GeSHi. There were some small changes needed in the generation of the required CSS-code, but I think that all is functional in the new package.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: BBcode GeSHi (code syntax highlighting)
July 24, 2011 03:23AM
I released version 1.0.5 of the BBcode GeSHi module. The main work on this module was to get the broken jumpmenu working again on this site for MSIE8 (and possible other versions of that browser). Something in the CSS for this module (unfortunately I'm still not 100% sure what exactly) caused the CSS code for the jumpmenu to be fully ignored. I other browsers, this issue did not occur. Version 1.0.5 works around this browser issue.

Full changelog:
    - Fixed a really edge-case MSIE8 CSS rendering issue with this module.
      The issue caused MSIE8 to ignore parts of the total CSS code,
      resulting in random page rendering issues.

    - Upgraded the included GeSHi package to version to 1.0.8.10.

    - Fixed PHP warning:
      Deprecated: Function split() is deprecated in ... bbcode_geshi.php

    - Fixed incorrect stripping of leading white space. Only leading white
      lines have to be stripped.

    - Improved rebuilding the CSS cache for this module, by also rebuilding
      it when the bbcode_geshi.php module file is updated. This improves
      rebuilding the cache during module development and after upgrades.

    - The CSS code now only contains the code for the activated languages
      in the module configuration.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: BBcode GeSHi (code syntax highlighting)
October 14, 2019 10:44AM
I have a bit of a problem. I updated Phorum to the latest version. I first used the older version of Ghesi, then 1.0.5, then the latest available 1.0.9. but the problem does not go away. When inserting code (any language) containing a single quote, something strange happens when the code is rendered - a semi-colon is generated after the quote. I say "generated" because the db entry is fine.

As an example:

Language: PHP
echo "<select name=';competition';>"; while(list($competitionName) = $result->fetch_row()) { echo "<option value=';$competitionName';>"; //another example echo $there . ';and'; . $here;

Note I did not add the semi-colons appearing here above - I submitted the code without the semi-colons. Before I go to Ghesi, am I missing something?



Edited 1 time(s). Last edit at 10/14/2019 10:45AM by Thomas_1.
Sorry, only registered users may post in this forum.

Click here to login