Width of Code Generator Display Window

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

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 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: [Dave] Width of Code Generator Display Window

I usually end up mocking up a page, or work converting existing pages, and then copying the appropriate lines of code from the generator into the page code.

I have a dual monitor setup and usually set up the generator view on one monitor and the dreamwaver html view on the other, and work back and forth.

So yes, I find myself needing to sort through the lines of code in the generator view and selectively copy them.

The gemnerator view is always much to narrow and I find that I have to horizontally drag past the end of the window in order to copy a required line of code.
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 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

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