WinBatch® Technical Support Forum

All Things WinBatch => Customer Service => Topic started by: ....IFICantBYTE on June 13, 2013, 08:42:17 PM

Title: Code highlighting and copy paste
Post by: ....IFICantBYTE on June 13, 2013, 08:42:17 PM
Deana or Tony,
this new board is great, but I noticed that when I try to copy example code (like your RSS feed example Deana) and paste it into WinBatch Studio, it all comes in as one line.. ie. there are no CRLFs at the end of each line, even though it looks fine in the web page.
I noticed you are using Geshi to colour the code... I tried some Winbatch code on the Geshi web site: http://qbnz.com/highlighter/demo.php
and it seemed to output coloured code I could copy/paste ok into Studio, so perhaps you can change the new WB forum to do whatever they are doing? Or perhaps add a "Copy Code" button next to any posted code that could then format it nicely for a clipboard copy/paste?

Regards,
....IFICantBYTE

Title: Re: Code highlighting and copy paste
Post by: kdmoyers on June 14, 2013, 05:05:49 AM
Quote from: ....IFICantBYTE on June 13, 2013, 08:42:17 PM
I noticed that when I try to copy example code (like your RSS feed example Deana) and paste it into WinBatch Studio, it all comes in as one line.. ie. there are no CRLFs at the end of each line, even though it looks fine in the web page.
Funny, I just did exactly that, and the code came in fine -- all on separate lines, ready to run.
Wonder what was different?  Maybe browser? I'm on Chrome.
-Kirby
Title: Re: Code highlighting and copy paste
Post by: JTaylor on June 14, 2013, 07:21:46 AM
I get line breaks copying/pasting from Firefox.

Jim
Title: Re: Code highlighting and copy paste
Post by: stanl on June 14, 2013, 07:32:28 AM
Works fine in IE 10
Title: Re: Code highlighting and copy paste
Post by: td on June 14, 2013, 07:39:35 AM
We tested syntax highlighting with the latest versions of Safari and Opera along with IE, FireFox, and Chrome before we announced the new board. All passed line breaks to WinBatch Studio.   
Title: Re: Code highlighting and copy paste
Post by: ....IFICantBYTE on June 15, 2013, 01:48:16 AM
Hmmm... just tried it on a different PC and it worked fine as you say... weird.. it just didn't work (tried many times) on my usual PC at work.
Will try again on Monday.
Sorry to bother you.. must be something on that particular PC set differently somewhere.

Regards,
....IFICantBYTE
Title: Re: Code highlighting and copy paste
Post by: ....IFICantBYTE on June 17, 2013, 08:44:32 PM
I can't work out exactly what is doing it.. but it is still "broken" on my usual work PC.

Something is making IE9 put the copied text (from the colorized div) on the clipboard without any line breaks.

I've been looking on the web, and there are a million different postings in various forums about very similar issues, but none of the solutons I've seen and tried have worked or directly apply to me.

For me, a temporary way around it is to load this forum using IE's compatibility view and then clipboard copy/paste worked with line breaks, so I can live with that for now until I find the real culpret.

Regards,
....IFICantBYTE