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.
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"...
I am trying to add PHP <xf:codeeditorrow in my admin template.
I tried this code:
<xf:codeeditorrow name="test_name" value="..."
But I get an error every time I hit...
Its a suggestion for a XenForo 2.0. ;)
I would like to see a codemirror implementation like the unmaintained addons "Template Syntax" and "XFMerge" (great addons from nattan) it does in the new XenForo 2.0 or above for easyer template/tms editing.