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: 25
Joined: Fri Jan 25, 2013 9:51 pm

Codebox Plus

Post by junosapien » Tue Jul 18, 2017 8:04 pm

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
kinerity
Community Team Member
Community Team Member
Posts: 1493
Joined: Mon Sep 01, 2014 1:00 am
Name: Kailey Truscott
Contact:

Re: Codebox Plus

Post by kinerity » Tue Jul 18, 2017 8:28 pm

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: 25
Joined: Fri Jan 25, 2013 9:51 pm

Re: Codebox Plus

Post by junosapien » 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.

User avatar
3Di
Registered User
Posts: 12364
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Codebox Plus

Post by 3Di » Fri Jul 28, 2017 9:34 pm

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. :)
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

nou nou
Registered User
Posts: 142
Joined: Sat Oct 29, 2016 8:08 pm

Re: Codebox Plus

Post by nou nou » Thu Oct 26, 2017 11:41 pm

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: 142
Joined: Sat Oct 29, 2016 8:08 pm

Re: Codebox Plus

Post by nou nou » Tue Nov 07, 2017 3:07 am

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: 142
Joined: Sat Oct 29, 2016 8:08 pm

Re: Codebox Plus

Post by nou nou » Fri Nov 17, 2017 6:03 am

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: 11
Joined: Mon Dec 11, 2017 9:02 pm

Re: Codebox Plus

Post by sfzeller » Mon Dec 11, 2017 9:07 pm

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: 142
Joined: Sat Oct 29, 2016 8:08 pm

Re: Codebox Plus

Post by nou nou » Mon Dec 11, 2017 10:24 pm

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: 11
Joined: Mon Dec 11, 2017 9:02 pm

Re: Codebox Plus

Post by sfzeller » Mon Dec 11, 2017 11:10 pm

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
kinerity
Community Team Member
Community Team Member
Posts: 1493
Joined: Mon Sep 01, 2014 1:00 am
Name: Kailey Truscott
Contact:

Re: Codebox Plus

Post by kinerity » Tue Dec 12, 2017 12:45 am

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: 142
Joined: Sat Oct 29, 2016 8:08 pm

Re: Codebox Plus

Post by nou nou » Tue Dec 12, 2017 2:19 am

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: 11
Joined: Mon Dec 11, 2017 9:02 pm

Re: Codebox Plus

Post by sfzeller » Wed Dec 13, 2017 8:12 pm

Thank you, all. The highlighter works great!

odf
Registered User
Posts: 47
Joined: Sun Jan 22, 2017 8:55 pm

Re: Codebox Plus

Post by odf » Thu Dec 28, 2017 8:01 am

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: 66
Joined: Sat Dec 26, 2015 9:10 pm
Name: Tolaso J Kos
Contact:

Re: Codebox Plus

Post by TJK » Sat Jan 27, 2018 8:41 pm

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?
LaTeX Greek community
Proper usage of LaTeX creates beautiful ( scientific ) documents

Post Reply

Return to “Extension Requests”

Who is online

Users browsing this forum: No registered users and 7 guests