Is there a special bbcode for adding PHP and HTML code structure?
Like this one: https://www.phpbb.com/support/docs/en/3 ... gphp-file/

Ooooow I didn't know thatJimA wrote: ↑Mon Jan 02, 2017 3:51 pmThat has always been built into phpBB by default (but has been removed in 3.2 though).
If you're using phpBB 3.1, you can use thestructure.Code: Select all
![]()
Thank you !! Tried on test forum, works perfect!3Di wrote: ↑Mon Jan 02, 2017 4:20 pmThat's for 3.2.x, a syntax highlighter.
https://github.com/s9e/phpbb-ext-highlighter/releases
Really? Any idea why? I always thought that was a very cool feature.
It was a side-effect from introducing the new BBcode parser. Author JoshyPHP did in turn develop the extension that 3Di linked to, so anyone who wants to can still have the feature on their board.
[code=php]
now, the code will be broken in phpBB 3.2 ? Did you realise how many times this bbcode has been used here at .com?Froddelaar wrote: ↑Mon Jan 02, 2017 6:39 pmSo if i use[code=php]
now, the code will be broken in phpBB 3.2 ?
Then I need to edit all those posts
[code]
Code: Select all
<?php
// phpBB 3.0.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'mysql'; //database type it may not be mysql
$dbhost = 'database host/domain';
$dbport = 'database port if not default';
$dbname = 'database name';
$dbuser = 'database user name';
$dbpasswd = 'database password';
$table_prefix = 'database table prefix';
$acm_type = 'file';
$load_extensions = '';
@define('PHPBB_INSTALLED', true);
//@define('DEBUG', true);
//@define('DEBUG_EXTRA', true);
?>
But there's no built-in alternative anymore.
highlight_string()
for codes with php parameter?highlight_string()
doesn't fit in that workflow.