Codebox Plus

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Ideas Centre
junosapien
Registered User
Posts: 51
Joined: Fri Jan 25, 2013 9:51 pm

Codebox Plus

Post by junosapien »

Syntax highlighter stopped working quite some time ago. CodeBox Plus was a good replacement, But with the latest upgrade it no longer works! I need an extension that will highlight the syntax of various programming languages and keep the formatting of code (just using BBCode strips out any indentation which is very annoying.) I so hope somebody is working on a syntax highlighting extension!
User avatar
KaileyT
Community Team Member
Community Team Member
Posts: 2860
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Codebox Plus

Post by KaileyT »

Not exactly the codebox plus you're looking for, but https://github.com/s9e/phpbb-ext-highlighter adds highlighting back.
Kailey Truscott - Community Team
junosapien
Registered User
Posts: 51
Joined: Fri Jan 25, 2013 9:51 pm

Re: Codebox Plus

Post by junosapien »

Thanks for the link. It's better than nothing, I guess. An extension that uses GeSHi would be better. I need something that knows how to highlight Windows PowerShell and VBScript.
User avatar
3Di
Former Team Member
Posts: 16053
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 - Frankfurt 🇩🇪
Name: Marco
Contact:

Re: Codebox Plus

Post by 3Di »

Pastebin uses Geshi, there is an extension in dev for Pastebin (I authored many years ago as well, now it is under another developer) and a bbcode https://www.phpbb.com/customise/db/bbco ... bin_embed/ but you need to pastebin your code first.

I am not aware of a Code BBcode box replacement which uses Geshi ATm.
That would be interesting, I will see what I can do once I got some sparetime.
I need it as well, that's why. :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
nou nou
Registered User
Posts: 404
Joined: Sat Oct 29, 2016 8:08 pm

Re: Codebox Plus

Post by nou nou »

I'm only getting to this now, but there is a branch of Codebox Plus that works with the current 3.2.1:

https://github.com/o0johntam0o/phpBB-Ex ... e/phpbb3.2

Hope that helps!
nou nou
Registered User
Posts: 404
Joined: Sat Oct 29, 2016 8:08 pm

Re: Codebox Plus

Post by nou nou »

The only thing that's not working in 3.2 is the download function. If anyone would share an idea on how to get around that, or an inkling on how that behaviour would have changed between 3.1 and 3.2, I would be ever so grateful :)
nou nou
Registered User
Posts: 404
Joined: Sat Oct 29, 2016 8:08 pm

Re: Codebox Plus

Post by nou nou »

junosapien wrote:
Fri Jul 28, 2017 7:22 pm
Thanks for the link. It's better than nothing, I guess. An extension that uses GeSHi would be better. I need something that knows how to highlight Windows PowerShell and VBScript.
I got it to work - including the download function - with some help from the original developer. PM me if you still need it, I'd be happy to help :)
sfzeller
Registered User
Posts: 43
Joined: Mon Dec 11, 2017 9:02 pm

Re: Codebox Plus

Post by sfzeller »

Hi all,

sorry I'm new to phpBB, but I have installed both extensions described in this thread, both are enabled, and yet when I try to post code (.c, for example) there is no syntax highlighting at all. What - presumably very basic - am I missing? Thanks in advance for your time!
nou nou
Registered User
Posts: 404
Joined: Sat Oct 29, 2016 8:08 pm

Re: Codebox Plus

Post by nou nou »

Since you're new to phpBB, how are you posting your code?

Are you using the [Codebox=] tags?

The other extension should work with the usual [code] tags.

Also check if syntax highlighting is turned on in the Codebox Plus settings - you'll find those in ACP/extensions (last tab in ACP)

Hth
sfzeller
Registered User
Posts: 43
Joined: Mon Dec 11, 2017 9:02 pm

Re: Codebox Plus

Post by sfzeller »

Thanks for your reply. I have used the [code] tags, and in ACP I find Extensions only under the Customize tab (3rd from last, I use version 3.2.1), but there is no other option than enable/disable, no specific settings for Codebox Plus. And I am not familiar at all with [Codebox=] tags. Again, I apologize for my ignorance, but I need to get this done for my employer, who wants to host his own forum with this specific requirement.
User avatar
KaileyT
Community Team Member
Community Team Member
Posts: 2860
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Codebox Plus

Post by KaileyT »

The syntax highlighter extension I linked to works. See this topic -> https://dev.project-w.org/viewtopic.php?f=7&t=6

The post literally contains only this text - [code]print 'Hello World!';[/code]
Kailey Truscott - Community Team
nou nou
Registered User
Posts: 404
Joined: Sat Oct 29, 2016 8:08 pm

Re: Codebox Plus

Post by nou nou »

Also, if you're setting this up for someone else I'd definitely go with Kinerity's linked extension rather than Codebox Plus.

The former is super simple and straightforward to figure out should anything go awry, and it doesn't change anything to how you would post code compared with a standard phpBB install - it just post-highlights what's already there.

The latter is great when you get it to work and has neat features, but is not maintained or actively supported.
sfzeller
Registered User
Posts: 43
Joined: Mon Dec 11, 2017 9:02 pm

Re: Codebox Plus

Post by sfzeller »

Thank you, all. The highlighter works great!
odf
Registered User
Posts: 161
Joined: Sun Jan 22, 2017 8:55 pm

Re: Codebox Plus

Post by odf »

Can anyone explain to me how to add up a download feature in the Codebox Plus extension for phpBB 3.2?

I also noticed that in phpBB 3.2, the Codebox Plus forces to skip one line between each two adjacent lines of code creating unnecessary white spaces in the code, does anyone know how to fix this problem as well?

Regards,

odf

White spaces problem solved.
TJK
Registered User
Posts: 110
Joined: Sat Dec 26, 2015 9:10 pm
Name: Tolaso J Kos
Contact:

Re: Codebox Plus

Post by TJK »

odf wrote:
Thu Dec 28, 2017 8:01 am


I also noticed that in phpBB 3.2, the Codebox Plus forces to skip one line between each two adjacent lines of code creating unnecessary white spaces in the code, does anyone know how to fix this problem as well?
How did you solve this problem?
Post Reply

Return to “Extension Requests”