Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Fernando

custom code box field size, want to make bigger

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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...