Controls
Code Editor
Code editor control lets you add and edit code snippets with syntax highlighting support.
Control Settings
- Language - Select syntax highlighting language (JavaScript, PHP, Ruby, etc.)
Usage
PHP
<div>
<?php echo $attributes['control_name']; ?>
</div>
PHP Preformatted
<pre>
<?php echo esc_html( $attributes['control_name'] ); ?>
</pre>
Handlebars
<div>
{{{control_name}}}
</div>
Handlebars Preformatted
<pre>
{{control_name}}
</pre>
Post Meta
<div>
<?php echo get_lzb_meta( 'control_meta_name' ); ?>
</div>