PureBasic Language for Geshi

Everything else that doesn't fall into one of the other PB categories.
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

PureBasic Language for Geshi

Post 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.

Image

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 ;)
Last edited by JCV on Thu Mar 29, 2007 4:59 pm, edited 1 time in total.
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Post by Comtois »

an old one here
Please correct my english
http://purebasic.developpez.com/
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

Can the mods install geshi here in the forum?
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: PureBasic Language for Geshi

Post 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.

Image

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
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

Thank you very much JCV :)
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Does anyone still have this file?
I need it :roll:
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

Uploaded. Download again. :wink:
Its been a long time since I checked my idling site.

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Thanks mate :D
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post 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...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post 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. :D

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post 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.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

I changed the background color in geshi sourcecode.

Could you upload your updated pb geshi file?

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post 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.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post 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);

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
Post Reply