Page 1 of 2
PureBasic Language for Geshi
Posted: Fri Mar 23, 2007 9:15 am
by JCV
Generic Syntax Highlighter
Ive been searching for purebasic language file for geshi but I cant find any so I made my own for my site.
I listed all PB functions, PB structures and windows API.
It also includes some popular functions from pb users custom purelibrary.
Direct Link
http://www.jcvsite.com/downloads/purebasic_geshi.zip
Download here:
http://www.jcvsite.com/en/downloads/mis ... ?Itemid=33
Comments/Suggestions are welcome.
PS:
You need to register in my site to be able to download all stuffs there

Posted: Fri Mar 23, 2007 1:00 pm
by Comtois
Posted: Wed Mar 28, 2007 6:08 am
by JCV
Can the mods install geshi here in the forum?
Re: PureBasic Language for Geshi
Posted: Thu Mar 29, 2007 2:45 pm
by SFSxOI
JCV wrote:Generic Syntax Highlighter
Ive been searching for purebasic language file for geshi but I cant find any so I made my own for my site.
I listed all PB functions, PB structures and windows API.
It also includes some popular functions from pb users custom purelibrary.
Download here:
http://www.jcvsite.com/en/downloads/mis ... ?Itemid=33
Comments/Suggestions are welcome.
PS:
You need to register in my site to be able to download all stuffs there

JCV,
Please, can you make this download available somewhere else so a person doesn't have to register or login? seems every time I register somewhere lately my amount of spam email increases.
Thank You
Posted: Thu Mar 29, 2007 3:54 pm
by JCV
Posted: Fri Mar 30, 2007 1:01 am
by SFSxOI
Thank you very much JCV

Posted: Sun May 25, 2008 2:11 pm
by Num3
Does anyone still have this file?
I need it :roll:
Posted: Sun May 25, 2008 2:50 pm
by JCV
Uploaded. Download again.
Its been a long time since I checked my idling site.
Posted: Sun May 25, 2008 3:59 pm
by Num3
Thanks mate

Posted: Tue May 27, 2008 10:13 pm
by DoubleDutch
I added a Geshi mode for phpbb3 (
http://www.phpbb.de/viewtopic.php?p=995561 ) to my forum, here is a test:
http://computingdata.com/phpbb3/viewtop ... f=20&t=108
It looks like its working ok, but there is an error in the PureBasic.php Geshi file - see the procedure name - it looks like its finding the 'and' and the 'or' when it shouldn't.
If it was sorted then it would be a good addition to this forum when they eventually move over to phpbb3.
Edit: Forgot to mention, if you add the mod to your forum and use BugTracker, don't forget to add the "global $phpbb_root_path;" bit at the end...
Posted: Wed May 28, 2008 4:07 am
by JCV
DoubleDutch wrote:It looks like its working ok, but there is an error in the PureBasic.php Geshi file - see the procedure name - it looks like its finding the 'and' and the 'or' when it shouldn't.
I havent updated the pb geshi file for more than a year now. Maybe it needs to be updated?
PB forum should be updated and install geshi. Much easier to read the sourcecodes here in the forum.

Posted: Wed May 28, 2008 8:37 am
by DoubleDutch
I agree. It takes about 15 minutes to update the forum, about 10 minutes to install bugtracker and another 5 to install Geshi! phpbb2 has beed depreciated and isn't being supported anymore.
I changed the text colours in the Geshi file you created to match those of the default PB editor ones - do you know how to change the background colour? That way it will look very similar to the IDE once the bug with procedure names is fixed.
Posted: Wed May 28, 2008 10:28 am
by JCV
I changed the background color in geshi sourcecode.
Could you upload your updated pb geshi file?
Posted: Wed May 28, 2008 10:43 am
by DoubleDutch
All I did was change the colours (at the bottom of the file) to match the colours from the IDE options panel.
I'll upload it for you later if you still like. Where is the bit in the Gesha code for the background change? Shame it can't be in the file.
Posted: Wed May 28, 2008 4:44 pm
by JCV
$geshi->set_overall_style('color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;', true);
I didnt open my edited source instead I search the Geshi examples.
$geshi->set_overall_style('color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;', true);