On 17 Dec 2013, at 03:55, Lawrence San <[email protected]> wrote:
> ...I'm using BBEdit 9.6.3 with OS X 10.6.8 (Snow Leopard). Your mention of
> "soft-wrapped" confuses me a little; are you saying that hard-wrapping is a
> precondition for suppressing the printing of folded text, in BBEdit 10?…
Sorry, I understood you to mean wrapped text and not folded elements. So far
as I can see it is not possible to print just what you see when elements are
folded in the display; these will always be expanded on printing.
I suppose it would be possible to use the startDisplayLine and endDisplayLine
properties of each line to write a script to produce a document containing only
the displayed lines, and print that. Here’s a very basic script to show the
sort of thing I mean. It could be elaborated to print something very similar
to what you actually see.
tell application "BBEdit"
tell document 1
set _docid to its ID
set _n to count lines
set _displayed to {}
repeat with _i from 1 to _n
set _shown to endDisplayLine of line _i
if _shown is not in _displayed then
set end of _displayed to _shown
end if
end repeat
_displayed -- a list of displayed lines
end tell
set _text to ""
repeat with _i in _displayed
set _text to _text & line _i of document id _docid & return
end repeat
end tell
--JD
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].