Jump to content
thirty bees forum

Recommended Posts

Posted

Hello everyone,

I would like to know. Is there a way to made the size of the box / field on the custom code page bigger?

Preferences > Custom Code

Or what is a 'best practise' ? copy it into a text editor, change it, paste it back?

Thanks a lot

Posted

In controllers/admin/AdminCustomCodeController.php, find the array definition starting with:

            Configuration::CUSTOMCODE_METAS => [

(probably line 29)

To this array definition, add

            'maxLines'                  => 100,

This lets this field grow to up to 100 lines.

Additional keywords: 'fontSize', 'minLines', 'showPrintMargin', 'enableBasicAutocompletion', 'enableSnippets' and 'enableLiveAutocompletion'.

Same applies to the other fields defined in this controller ( = on this page) and to code input fields elsewhere.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...