Re: [Codestriker-user] Break into horizontal scrolling panes ?
Brought to you by:
sits
|
From: Dean A. <dea...@pa...> - 2010-09-27 21:23:47
|
I'm attaching a sample piece of html (hope it gets thru). It accomplishes most of what I'm after. It works in FF and Chrome, but of course, not in IE (I tested IE8). I haven't tested safari or opera yet. However, I'm not certain where to make the incision to inject this into the templates. Its going to add a div around the tables used for the old/new sources, and adds a bit of JS. Question: will the delta view always pad the shorter file to the same # of lines as the longer ? This hack seems to handle different file sizes OK, but to be usable both panes have to have vertical scrollbars; whereas if both are the same length, then the vertical scroll can be hidden on the left (or the right) pane. If you can mark the spot to inject this, I'll hack and give it a whirl. TIA, Dean Arnold ParAccel, Inc. -----Original Message----- From: David Sitsky [mailto:dav...@gm...] Sent: Saturday, September 25, 2010 9:03 PM To: Dean Arnold Subject: Re: [Codestriker-user] Break into horizontal scrolling panes ? If you have any luck - feel free to email across your changes. Thanks! On Thu, Sep 23, 2010 at 2:03 AM, Dean Arnold <dea...@pa...> wrote: > Alas, that's suboptimal. While it does fit everything into the browser, the wrap causes the line numbers to align to the center of the wrapped lines (which is hard to read), and frankly the resulting wrapped layout is hard to read (my target users tend to be fussy about code layout). > > Looking at the templates, it seems like template/en/default/viewdeltas.html.tmpl is where the code gets rendered ? I'll see if I can split the single table into 2. My CSS is rusty, but I recall doing something similar for other projects (maybe using a scrollable div instead of table ?) > > I guess I'll kick it around a bit. > > Thanks for the prompt response, > Dean Arnold > ParAccel, Inc. > > -----Original Message----- > From: David Sitsky [mailto:dav...@gm...] > Sent: Wednesday, September 22, 2010 3:16 AM > To: Dean Arnold > Cc: cod...@li... > Subject: Re: [Codestriker-user] Break into horizontal scrolling panes ? > > Hi Dean, > > Thanks for your message. > > I haven't tried this, but edit the html/codestriker.css file, and replace: > > white-space: pre; > > white-space: pre-wrap; > > This might give you something closer to what you want.. > > Cheers, > David > > On Wed, Sep 22, 2010 at 9:26 AM, Dean Arnold <dea...@pa...> wrote: >> 1st, many thnx for a great tool! And in my old favorite language! >> >> >> >> But I've got a request: my source code has long lines, and the lack of a >> wrapping capability is a serious limitation. Is it possible to break the >> display table into 2 nested, fixed width tables w/ horizontal scrolling ? Or >> alternately, into iframes w/ horizontal scrollbars ? >> >> >> >> If you can point me at the general area where this might be applied, I'd be >> happy to play w/ it and submit a patch. >> >> >> >> Thanks, >> >> >> >> ParAccel, Inc. >> >> >> >> Dean Arnold >> >> Sr. Connectivity Engineer >> >> dea...@pa... >> >> 3 Results Way, Cupertino, CA 95014 >> >> Phone: (858)309-4733 x158 YIM: renodino1 >> >> www.paraccel.com >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> _______________________________________________ >> Codestriker-user mailing list >> Cod...@li... >> https://lists.sourceforge.net/lists/listinfo/codestriker-user >> >> > |