XF 2.0 PHP <xf:codeeditorrow...

CMTV

Well-known member
Hi!

I am trying to add PHP <xf:codeeditorrow in my admin template.

I tried this code:
HTML:
<xf:codeeditorrow name="test_name" value="..."
                  mode="php" data-line-wrapping="true"
                  class="codeEditor--autoSize"
                  />
But I get an error every time I hit enter:
hit-enter-error.webp

This code do not cause errors but the highlighting is not working properly:
HTML:
<xf:js src="vendor/codemirror/codemirror.min.js" />
<xf:js src="vendor/codemirror/mode/clike/clike.min.js" />
<xf:js src="vendor/codemirror/mode/php/php.min.js" />

<xf:codeeditorrow name="test" value="..."
                  mode="php" data-line-wrapping="true"
                  class="codeEditor--autoSize"
                  />
no-highlighting-error.webp
 
Back
Top Bottom