[ABD] bbGeSHi 0.7.5 - a better syntax highlighter

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
kida7
Registered User
Posts: 64
Joined: Fri Sep 26, 2008 2:54 pm
Location: Vietnam
Contact:

[ABD] bbGeSHi 0.7.5 - a better syntax highlighter

Post by kida7 » Fri May 07, 2010 2:09 pm

Title: bbGeSHi - a better syntax highlighter
Author: DarrenSW
Description:
Replaces phpBB's own highlighter with GeSHi syntax highlighter.
Use it like this

Code: Select all

...
Or
[SYNTAX_NAME]...[/SYNTAX_NAME]
This MOD uses a modified version of the latest stable* GeSHi release 1.0.7.20.
GeSHi and information about it can be found at http://qbnz.com/highlighter/
Version: 0.7.5
Installation level: Easy
Installation time: ~10 minutes
Download link: http://www.mediafire.com/?nnttr3zzdmt
Note: DarrenSW is mod's author. I have a small fix in parser_message.php and add modx to this mod, so I re-post it. I hope this mod can be added to Mod database Release because i think it work ok!

With syntax hilighter mod, you will get error when you post other bbcode in [SYNTAX=<language>], like, if you post:

Code: Select all

[syntax=html]
[quote]Test quote[/quote]
[color=red]Test  color[/color]
[/syntax]
, you will get:
Image

But with this mod you, if you post

Code: Select all

[code=html]
[quote]Test quote[/quote]
[color=red]Test  color[/color]
[/code] will get:
Image

Screen shot:

prosilver

Image

subsilver

Image


Demo site: http://hanghaicnt.co.cc, username: test, password: 123456
Suport: http://hanghaicnt.net
Last edited by kida7 on Sat Jun 05, 2010 3:23 am, edited 4 times in total.

User avatar
hah
Registered User
Posts: 85
Joined: Sat Feb 13, 2010 11:49 am
Location: Pernik, Bulgaria
Name: Alex Georgiev
Contact:

Re: bbGeSHi 0.7.5 - a better syntax highlighter

Post by hah » Fri May 07, 2010 2:22 pm

Will there be any problems with the Almsamim's WYSIWYG Editor? I guess there are..

EDIT: Saw the demo, maybe there is not problem? Works
EDIT: When you don't use in bbcode

Code: Select all

 only [code] the line remover and the expand code are not working the href (http://site.com/#) works, not the onclick.
For that (maybe) you use the [code=[b]text[/b]], and that is a solution, but on already posted topics it doesn't work, only after manual use of syntax.

kida7
Registered User
Posts: 64
Joined: Fri Sep 26, 2008 2:54 pm
Location: Vietnam
Contact:

Re: bbGeSHi 0.7.5 - a better syntax highlighter

Post by kida7 » Fri May 07, 2010 3:41 pm

In bbcode.html, you can replace

Code: Select all

href="#"
with

Code: Select all

href="javascript:;"
to work with seo

User avatar
hah
Registered User
Posts: 85
Joined: Sat Feb 13, 2010 11:49 am
Location: Pernik, Bulgaria
Name: Alex Georgiev
Contact:

Re: bbGeSHi 0.7.5 - a better syntax highlighter

Post by hah » Fri May 07, 2010 4:58 pm

kida7 wrote:In bbcode.html, you can replace

Code: Select all

href="#"
with

Code: Select all

href="javascript:;"
to work with seo
Mh I've tried with javascript:void..etc

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10940
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Re: bbGeSHi 0.7.5 - a better syntax highlighter

Post by battye » Tue May 11, 2010 2:28 pm

Hi kida7, could you please give your topic a prefix in accordance with the development forum rules at http://www.phpbb.com/mods/rules-and-pol ... nt/#rule3a

It allows users to see the development status of the MOD at a glance.

Thank you :)
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

User avatar
euer GEHIRN
Registered User
Posts: 17
Joined: Mon May 25, 2009 9:22 pm
Location: Germany

Re: [RC] bbGeSHi 0.7.5 - a better syntax highlighter

Post by euer GEHIRN » Wed May 26, 2010 12:27 pm

any news about this mod?
stable release planned? :?:
linke this version more than syntax hilighter mod ;)
mfg brain_

-sorry for my bad english-

Markstar
Registered User
Posts: 72
Joined: Mon May 01, 2006 6:26 pm

Re: [RC] bbGeSHi 0.7.5 - a better syntax highlighter

Post by Markstar » Fri Jun 04, 2010 6:39 pm

Besides the solved issue with the bbcode, I do really like the ability to hide/show the line numbers.

However, imo there are two issues with this release:
1) The GeSHi version is pretty outdated by now (the current version is 1.0.8.8)

2) Once you have posted code, you can't change the colors afterwards (ie. by changing the appropriate GeSHi PHP file, like cpp.php). You have to reedit the post and submit it again to enable the changes. This part is a deal-breaker for me, since it means that changing to a new version with maybe some new colors, you'd have to edit all posts again (or, in my case, I'm still experimenting with the colors). :(

Locked

Return to “[3.0.x] Abandoned MODs”