Controls
Code Editor
Code editor control is used to store code parts with syntax highlighting for the block. See examples below to use this control.
Control Settings
- Language
JavaScript
,PHP
,Ruby
, etc...
– select the language which will be added in the control, for example
Usage
PHP
<p>
<?php echo $attributes['control_name']; ?>
</p>
PHP Preformatted
<pre>
<?php echo esc_html( $attributes['control_name'] ); ?>
</pre>
Handlebars
<p>
{{{control_name}}}
</p>
Handlebars Preformatted
<pre>
{{control_name}}
</pre>
Post Meta
<p>
<?php echo get_lzb_meta( 'control_meta_name' ); ?>
</p>