wzcbh_server_highlight_max_bytes
Filter the largest code block that is highlighted server-side.
Blocks above this size render as escaped plain text. Set to 0 to disable server-side highlighting entirely.
Type: filter
Since: 1.2.2
Source: includes/frontend/class-blocks.php line 997
Parameters
| Type | Name | Description |
|---|---|---|
int |
$limit |
Size limit in bytes. Default 131072 (128KB). |
string |
$language |
The block language slug. |
Usage
add_filter( 'wzcbh_server_highlight_max_bytes', function($limit, $language) {
// ...
return $limit;
} );