[ABD] bbGeSHi - 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.
DarrenSW
Registered User
Posts: 58
Joined: Fri May 11, 2007 11:50 pm
Location: Sweden
Contact:

[ABD] bbGeSHi - a better syntax highlighter

Postby DarrenSW » Wed Jul 11, 2007 2:44 am

MOD Title: bbGeSHi - a better syntax highlighter
MOD Description:
Replace phpBB's own highlighter for the code-tag and get syntax highlight for aprox 90 programing languages.

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/

* as of 14 July 2007

MOD Version: 0.7.5
MOD History:
  • 0.7.5
    • Expand/Contract codebox function added
    • A bunch of bug fixes
  • 0.7.0
    • Added possibility to use [syntax-name] tags instead of [code=syntax_name]
    • New language added Extensible Stylesheet Language (XSL)
    • A couple of minor fixes
  • 0.5.2 - Firts public release
MOD features:
  • Syntax highlight for aprox 90 languages
  • If no syntax given the default syntax will be used
  • Use it with phpBB's own code-tag or with custom-tags (eg [xml]...[/xml])
  • Line numbers (click on a link and hide those)
  • Expand/Contract codebox
  • Firefox do not copy line numbers when copying the code
MOD Download: bbGeSHi_0.7.5.zip

Demo Board: here. (thanks cillinz)
Screenshot:
Image
Last edited by DarrenSW on Sun Jul 29, 2007 1:14 am, edited 3 times in total.

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby Gleasonator » Wed Jul 11, 2007 3:13 am

Very cool. :) But why is it DEV if you have a download?
Sorry for my bad Engrish !
gleason|design

Image

User avatar
JunglistPerfection
Registered User
Posts: 611
Joined: Mon Apr 09, 2007 11:58 pm
Location: Chicago, IL

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby JunglistPerfection » Wed Jul 11, 2007 3:39 am

Is it cool to download or should I wait?

User avatar
Neon_
Registered User
Posts: 79
Joined: Wed Jul 26, 2006 2:50 am

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby Neon_ » Wed Jul 11, 2007 3:40 am

Think I like the way this one is going as apposed to some of the other mods of this type. I'm assuming you're using a table to display this with the numbers in one column and each line on its own row?
Image

DarrenSW
Registered User
Posts: 58
Joined: Fri May 11, 2007 11:50 pm
Location: Sweden
Contact:

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby DarrenSW » Wed Jul 11, 2007 9:24 am

Gleasonator wrote:Very cool. :) But why is it DEV if you have a download?

It is stable but still under development. New functions will be added.
JunglistPerfection wrote:Is it cool to download or should I wait?

Yes, you can download it. I tested the code both on my converted 2.x board and on my 3.x development board.
Neon_ wrote:Think I like the way this one is going as apposed to some of the other mods of this type. I'm assuming you're using a table to display this with the numbers in one column and each line on its own row?

No, I'm not using table for this. Your code is placed in ordered list when line numbers are on and in definition list when they are of.

cillinz
Registered User
Posts: 68
Joined: Sun Jan 16, 2005 11:29 am

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby cillinz » Wed Jul 11, 2007 10:54 am

Is it not the same as:
viewtopic.php?f=70&t=547293
?
stotis.net <- Lithuanian the best.

DarrenSW
Registered User
Posts: 58
Joined: Fri May 11, 2007 11:50 pm
Location: Sweden
Contact:

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby DarrenSW » Wed Jul 11, 2007 10:58 am

cillinz wrote:Is it not the same as:
viewtopic.php?f=70&t=547293
?

Same purpose but no, it's not the same.

cillinz
Registered User
Posts: 68
Joined: Sun Jan 16, 2005 11:29 am

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby cillinz » Wed Jul 11, 2007 11:01 am

I this mod would be better. In that mod i have some problems.. For example doesn't work in private messages, no default syntax, firefox copies line numbers.
stotis.net <- Lithuanian the best.

DarrenSW
Registered User
Posts: 58
Joined: Fri May 11, 2007 11:50 pm
Location: Sweden
Contact:

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby DarrenSW » Wed Jul 11, 2007 11:19 am

cillinz wrote:...doesn't work in private messages, no default syntax, firefox copies line numbers.


Yes, bbGeSHi works in private messages, moderator control panel, there is default syntax and no, firefox doesn't copy line numbers if you hide them.

cillinz
Registered User
Posts: 68
Joined: Sun Jan 16, 2005 11:29 am

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby cillinz » Wed Jul 11, 2007 11:27 am

Cool :) i have just updated my board to RC3, i i'm going to install this mod.
stotis.net <- Lithuanian the best.

cillinz
Registered User
Posts: 68
Joined: Sun Jan 16, 2005 11:29 am

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby cillinz » Wed Jul 11, 2007 11:47 am

I have just installed this mod.
Works ;)
But how make font a little bit bigger? EDIT: Fixed myself.
http://stotis.net/phpbb-f46/kaip-sukurt ... -t699.html
And how to set default syntax ? :)
Last edited by cillinz on Wed Jul 11, 2007 11:57 am, edited 1 time in total.
stotis.net <- Lithuanian the best.

british.assassin
Registered User
Posts: 29
Joined: Fri Nov 04, 2005 6:58 pm

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby british.assassin » Wed Jul 11, 2007 11:53 am

Cool, at last, firefox will not copy line numbers!!

Thanks,

british.assassin

DarrenSW
Registered User
Posts: 58
Joined: Fri May 11, 2007 11:50 pm
Location: Sweden
Contact:

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby DarrenSW » Wed Jul 11, 2007 12:00 pm

cillinz wrote:And how to set default syntax ? :)


Default syntax, if none given, is plain text and it's set in the core code.

cillinz
Registered User
Posts: 68
Joined: Sun Jan 16, 2005 11:29 am

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby cillinz » Wed Jul 11, 2007 12:02 pm

But i can see if it is default it doesn't show line numbers.
How can i enable line numbers for default syntax?
stotis.net <- Lithuanian the best.

DarrenSW
Registered User
Posts: 58
Joined: Fri May 11, 2007 11:50 pm
Location: Sweden
Contact:

Re: [DEV] bbGeSHi - a better syntax highlighter

Postby DarrenSW » Wed Jul 11, 2007 12:11 pm

cillinz wrote:But i can see if it is default it doesn't show line numbers.

It will show line numbers for the default syntax.
cillinz wrote:How can i enable line numbers for default syntax?

Just write your code in the code-tag like this:

Code: Select all

[code]<html>
    <head>
        <title></title>
    </head>
    <body>

    </body>
</html>[/code]


Topics without line numbers that you see here aren't using bbGeSHi. Just edit and submit each one of those and line numbers will be shown.


Return to “[3.0.x] Abandoned MODs”

Who is online

Users browsing this forum: No registered users and 4 guests