Width of Code Generator Display Window

6 posts by 3 authors in: Forums > CMS Builder
Last Post: November 26, 2008   (RSS)

By gkornbluth - November 21, 2008

While I'm thinking about it...

Any way the code generator display window can be made wider in the next version?

1/3 of the screen is outside the window and the window always has to be scrolled in order to copy a line of code.

Thanks

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!

Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Width of Code Generator Display Window

By Djulia - November 21, 2008

Perhaps a function like Select (and copy) Form Element ?
http://www.dynamicdrive.com/dynamicindex11/selectform.htm

Djulia

Re: [gkornbluth] Width of Code Generator Display Window

By Dave - November 21, 2008

Hi Jerry,

Can you tell me a bit about how you are using it? Do you often need to scroll down and copy a single line?

I usually just select all and copy that so I wanted to know how you do it or how you're using it.

Thanks!
Dave Edis - Senior Developer
interactivetools.com

Re: [gkornbluth] Width of Code Generator Display Window

By Dave - November 24, 2008

Ok, thanks for the details.

A few options. You can increase the width yourself by editing this file: /lib/menus/admin/showcode.php

Search for "width: 100%" and replace it with "width: 1200px" like this:
<textarea name="listViewerCode" wrap="off" spellcheck="false" rows="10" cols="50" style="width: 1200px; height: 400px;"><?php

Another trick for selecting a single line is to select the beginning of the line with the mouse and then drag down to the next line. This usually grabs the line and it's enter but not anything from the next line. I have this issue all the time when I'm copying code from the browsers "view-source" page.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Width of Code Generator Display Window

By gkornbluth - November 26, 2008

Much easier to work with the wider window.

Thanks again...

Jerry
The first CMS Builder reference book is now available on-line!

Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php