[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

[ABD] bbGeSHi - a better syntax highlighter

Post by DarrenSW »

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: Select all

      [*]New language added Extensible Stylesheet Language (XSL)
      [*]A couple of minor fixes[/list]
      [*]0.5.2 - Firts public release[/list]
      [b]MOD features[/b]:
      [list][*]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 [b][xml]...[/xml][/b])
      [*]Line numbers (click on a link and hide those)
      [*]Expand/Contract codebox
      [*]Firefox do not copy line numbers when copying the code[/list]
      [b]MOD Download[/b]: [url=http://www.phpportalen.net/files/bbGeSHi_0.7.5.zip]bbGeSHi_0.7.5.zip[/url]
      
      [b]Demo Board[/b]: [url=http://stotis.net/siukslynas-f6/bbgeshi-a-better-syntax-highlighter-t1014.html]here[/url]. (thanks cillinz)
      [b]Screenshot[/b]:
      [img]http://img510.imageshack.us/img510/8574/screenshotwl7.gif[/img]
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

Re: [DEV] bbGeSHi - a better syntax highlighter

Post by Gleasonator »

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

Post by JunglistPerfection »

Is it cool to download or should I wait?
Neon_
Registered User
Posts: 79
Joined: Wed Jul 26, 2006 2:50 am

Re: [DEV] bbGeSHi - a better syntax highlighter

Post by Neon_ »

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

Re: [DEV] bbGeSHi - a better syntax highlighter

Post by DarrenSW »

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

Post by cillinz »

stotis.net <- Lithuanian the best.
DarrenSW
Registered User
Posts: 58
Joined: Fri May 11, 2007 11:50 pm
Location: Sweden

Re: [DEV] bbGeSHi - a better syntax highlighter

Post by DarrenSW »

cillinz wrote:Is it not the same as:
http://www.phpbb.com/community/viewtopi ... 0&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

Post by cillinz »

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

Re: [DEV] bbGeSHi - a better syntax highlighter

Post by DarrenSW »

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

Post by cillinz »

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

Post by cillinz »

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

Post by british.assassin »

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

Re: [DEV] bbGeSHi - a better syntax highlighter

Post by DarrenSW »

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

Post by cillinz »

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

Re: [DEV] bbGeSHi - a better syntax highlighter

Post by DarrenSW »

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”