CMTV
Well-known member
Hi!
I am trying to add PHP
I tried this code:
But I get an error every time I hit enter:
This code do not cause errors but the highlighting is not working properly:
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"
/>
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"
/>