The suggestion is simple: add a new mode called php-plain to the list of CodeMirror supported languages with text/x-php mime type.
This can be useful for addon creators who want to add php editor rows in their addon.
This addon makes code bbcode and code editor way more functional by adding copy, expand, collapse buttons, resizer bar and automatically adjusting the colors to fit chosen forum style.
This is an open source addon. Visit GitHub repository for source code.
All my addons are free...
Put the code below in any admin template (for example in addon_list):
<xf:codeeditorrow mode="php" data-line-wrapping="true" class="codeEditor--autoSize" />
This code creates code editor row without any errors:
But the code is not highlighting and throws an error when hitting "Enter"...