format¶
- format (type => text)¶
- Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']
- Type
string (keyword)
- Scope
Display
- RenderType
The value specifies the language the code editor should handle. Allowed values:
css
html
javascript
php
typoscript
xml
Examples¶
Code editor with format HTML¶

Code editor with highlighting HTML¶
Excerpt of TCA definition (EXT:my_extension/Configuration/TCA/tx_myextension_domain_model_mytable.php)¶
[
'columns' => [
'codeeditor1' => [
'label' => 'codeEditor_1 format=html, rows=7',
'description' => 'field description',
'config' => [
'type' => 'text',
'renderType' => 'codeEditor',
'format' => 'html',
'rows' => 7,
],
],
],
]