col / qlcolorcode

Automatically exported from code.google.com/p/qlcolorcode
0 stars 0 forks source link

Plain Text Needs Automatic Wrapping #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Select an RTF file which contains long line lengths and doesn't use line
breaks or carriage returns. These are common; I've attached "sample.rtf" as
an example.
2. View with Quick Look. Text.qlgenerator should handle the QL preview for
this file. Notice there is no horizontal scrolling.
3. Select a plain text file which contains long line lengths and doesn't
use line breaks or carriage returns. These are common; I've attached
"sample.txt" as an example.
4. View with Quick Look. If QLColorCode is installed, it will handle the QL
preview for this file. Notice the large amount of horizontal scrolling.

What is the expected output? What do you see instead?
I would expect to see the text in both the RTF and TXT files to wrap to the
width of the QL preview window, with text automatically flowing to fill the
width as it's resized. This also means no horizontal scrollbar should be
displayed. Please compare what you see with the RTF and TXT files - you
will see that the RTF wraps (correct) but the TXT does not - incorrectly,
in my opinion.

What version of the product are you using? On what operating system?
v1.1 on Mac OS X 10.5.7.

Please provide any additional information below.
To clarify - I'm requesting that plain text (not source code!) is either:
1. Not handled by QLColorCode (and handled by Text.qlgenerator), or
2. QLColorCode auto-wraps plain text to the width of the preview window.

Thanks.

Original issue reported on code.google.com by gc...@me.com on 25 Jun 2009 at 12:31

Attachments:

GoogleCodeExporter commented 8 years ago
Changing a TXT file to TEX (for example) permits word wrap as expected 
(assuming it's enabled with Highlight 
option -V or -W), so this appears to be specific to TXT. (I'm using v2.0.2, and 
I haven't disabled the Xcode Ql 
plugin; my only interest here is with TXT files.)

Were this to function as expected, this would be a great boon to those of us 
who have use tons of TXT files as 
personal or research notes, simply for the ability to set the font and size. 
The default QL behavior for TXT 
uses a barely legible Monaco 10, and this can't be changed:

http://discussions.apple.com/message.jspa?messageID=6748634

Thanks!

Original comment by markye...@gmail.com on 29 Apr 2010 at 3:13

GoogleCodeExporter commented 8 years ago
The workaround is simple enough (if only I had read my own comments): override 
or edit the Highlight txt.lang 
file, removing the line $DISABLEHIGHLIGHTING=true. Now plain text wraps, 
although numbers are colored 
blue... small price to pay, in my opinion.

It seems that this is may be an issue with Highlight, not with QLColor Code.

Original comment by markye...@gmail.com on 29 Apr 2010 at 5:46

GoogleCodeExporter commented 8 years ago
The hint from comment 2 does not work (anymore).
QLColor Code 2.0.1, Mac OS X 10.6.8

Original comment by p....@gmx.at on 28 Aug 2011 at 10:51

GoogleCodeExporter commented 8 years ago
I would love to see wrapping too, as horizontal scrolling is annoying.
Not only for plain text, but also for source code.
And preferably and intelligent wrapping, which adapts to the line's indention.

Original comment by p....@gmx.at on 28 Aug 2011 at 10:52