Re: Copying HTML of preview window

2013-02-17 Thread Jan Erik Moström
You're absolutely right :)

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
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 bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Copying HTML of preview window

2013-02-17 Thread TJ Luoma
On Saturday, February 16, 2013, Jan Erik Moström wrote:

> I'm pretty sure I'm missing something really basic here. I seem to
> remember to having seen that it was possible to copy the HTML code from the
> preview window but now I can't figure out how to do it.
>
> Am I misremembering something or am I just stupid and can't find how to do
> it?
>

Any chance you are thinking of a time when you previewed a BBEdit document
in Marked.app?

That app does have a "copy from preview" feature.

Apologies if this isn't it. Just thought it was worth a shot.

TjL



>

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
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 bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Copying HTML of preview window

2013-02-17 Thread Jan Erik Moström
On Sun, Feb 17, 2013 at 10:42 PM, David Shea  wrote:

> I've used cmd-A, cmd-C to copy n paste the contents into emails.


Yes, but this only copies the text - not the HTML code (I want to use
multimarkdown and get the resulting HTML code without having to run mmd
från the command line)

Anyway, I'm informed that it's not possible but I'll use a script to get a
similar functionality.

- jem

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
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 bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Copying HTML of preview window

2013-02-17 Thread David Shea
I've used cmd-A, cmd-C to copy n paste the contents into emails.

David

On 17 February 2013 08:46, Jan Erik Moström  wrote:
> I'm pretty sure I'm missing something really basic here. I seem to remember
> to having seen that it was possible to copy the HTML code from the preview
> window but now I can't figure out how to do it.
>
> Am I misremembering something or am I just stupid and can't find how to do
> it?
>
> - jem
>
> --
> --
> You received this message because you are subscribed to the
> "BBEdit Talk" discussion group on Google Groups.
> To post to this group, send email to bbedit@googlegroups.com
> To unsubscribe from this group, send email to
> bbedit+unsubscr...@googlegroups.com
> For more options, visit this group at
> 
> If you have a feature request or would like to report a problem,
> please email "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: 
>
> ---
> 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 bbedit+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
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 bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




How to change character of invisible space from a diamond to a simple grey centered dot?

2013-02-17 Thread lawlist
I miss the grey centered dot that is available in other programs to 
indicate invisible spaces.  The diamond shape is so intrusive, that I do 
not use the feature.  Has anyone figured out how to change the diamond 
shape to something more palatable?

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
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 bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help from the clueful

2013-02-17 Thread LuKreme
ctfishman opined on Saturday 16-Feb-2013@21:56:21
> Save the following perl script as a filter and it should do the trick (worked 
> on your sample data, did not test it any further then that):

Well, if it’s taking a perl script to do it then I don’t feel quite so bad for 
failing to manage it with grep.

Will give this a shot later today.

-- 
"There's sex and death and human grime in monochrome for one thin dime
and at least the trains all run on time but they don't go anywhere."


-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
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 bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help from the clueful

2013-02-17 Thread LuKreme
jamiepeloquin opined on Sunday 17-Feb-2013@07:26:46
> Search: ^\d+# (.+)
> Replace: #\1
> 
> The Search should find a pattern, starting with one or more numbers, followed 
> by a hash, space and capture a series of any character with the exception of 
> a return/new line. The replace should replace that entire pattern with a 
> hash, followed by the string captured in the search.


That ill not work, it will just strip the numbers and any multi-line groups 
with the same number will be treated as separate lines.

-- 
THE PRESIDENT DID IT IS NOT AN EXCUSE Bart chalkboard Ep. AABF05


-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
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 bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Help from the clueful

2013-02-17 Thread jamiepeloquin
Search: ^\d+# (.+)
Replace: #\1

The Search should find a pattern, starting with one or more numbers, followed 
by a hash, space and capture a series of any character with the exception of a 
return/new line. The replace should replace that entire pattern with a hash, 
followed by the string captured in the search.

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
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 bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help from the clueful

2013-02-17 Thread ctfishman
I posted this reply already but it seems to have disappeared in some Google 
Groups strangeness. 

Run the following perl script on your data as a filter and it will do what 
you want:

#!/usr/bin/perl

while (<>) {
#remove the line break character
chomp($_);
#split the line into the starting number and following text
( $number, $text ) = split( /\s*\#\s*/, $_, 2 );
#add the text plus a space to any previous text found with the same number
$text{"$number"} .= $text . " ";
}

#sort all the groups, which are identified by their number as their key in 
the hash "text"
foreach ( sort { $a <=> $b } keys(%text) ) {
#change the extra space at the end of the group to a line break
$text{$_} =~ s/ $/\n/;
#print a "#" character and a space, followed by the text
print "# " . $text{$_};
}

On Saturday, February 16, 2013 6:16:25 PM UTC-5, LuKreme wrote:
>
> I have a text file that is formatted like this: 
>
> 1#some text 
> 1#goes here 
> 1#not hard wrapped 
> 1#to the line length 
> 2#while other text 
> 2#is here 
> 3#some here 
> 4#also here 
> 4#and there and everywhere 
>
> and continuing on for a few thousand increments and many thousands of 
> lines. (that is, there are over 2000 numbers and over 5000 lines). 
>
> I need to end up with this: 
>
> # some text goes here, hard wrapped to the line length 
> # while other text is here 
> # some here 
> # also here and there and everywhere 
>
> (that is, I need to strip the numbers, but I need to keep each text block 
> together on a single line). 
>
> The specific formatting at the end isn't the issue, I can do that, it's 
> grouping the lines based on the numbering that is the issue. Even if I 
> could just get to 
>
> 1#some text #goes here #not hard wrapped #to the line length 
> 2#while other text #is here 
> 3#some here 
> 4#also here #and there and everywhere 
>
> That would get me close enough to deal with the rest of the formatting. 
>
> I was reading Chapter 8 thinking there was a way to do this with grep, and 
> I think there is a way with the negative look-ahead, but once again when 
> trying to figure it out my brain melted a little. 
>
> Something like (^\d+)#(.*)$ . . . (?!\1) 
>
> BTW, in googling for info, I found this page 
>
>  
>
> Which appears to simply be an html-ization of a portion of the BBEdit 
> manual. 
>
> -- 
> "There's sex and death and human grime in monochrome for one thin dime 
> and at least the trains all run on time but they don't go anywhere." 
>
>

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
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 bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help from the clueful

2013-02-17 Thread ctfishman
Save the following perl script as a filter and it should do the trick 
(worked on your sample data, did not test it any further then that):

#!/usr/bin/perl

while (<>) {
#remove the line break character
chomp($_);

#split the line into the starting number and following text
( $number, $text ) = split( /\s*\#\s*/, $_, 2 );

#add the text plus a space to any previous text found with the same 
number
$text{"$number"} .= $text . " ";

}

#sort all the groups, which are identified by their number as their key in 
the hash "text"
foreach ( sort { $a <=> $b } keys(%text) ) {

#change the extra space at the end of the group to a line break
$text{$_} =~ s/ $/\n/;

   #print a "#" character and a space, followed by the text
print "# " . $text{$_};

}


On Saturday, February 16, 2013 6:16:25 PM UTC-5, LuKreme wrote:
>
> I have a text file that is formatted like this: 
>
> 1#some text 
> 1#goes here 
> 1#not hard wrapped 
> 1#to the line length 
> 2#while other text 
> 2#is here 
> 3#some here 
> 4#also here 
> 4#and there and everywhere 
>
> and continuing on for a few thousand increments and many thousands of 
> lines. (that is, there are over 2000 numbers and over 5000 lines). 
>
> I need to end up with this: 
>
> # some text goes here, hard wrapped to the line length 
> # while other text is here 
> # some here 
> # also here and there and everywhere 
>
> (that is, I need to strip the numbers, but I need to keep each text block 
> together on a single line). 
>
> The specific formatting at the end isn't the issue, I can do that, it's 
> grouping the lines based on the numbering that is the issue. Even if I 
> could just get to 
>
> 1#some text #goes here #not hard wrapped #to the line length 
> 2#while other text #is here 
> 3#some here 
> 4#also here #and there and everywhere 
>
> That would get me close enough to deal with the rest of the formatting. 
>
> I was reading Chapter 8 thinking there was a way to do this with grep, and 
> I think there is a way with the negative look-ahead, but once again when 
> trying to figure it out my brain melted a little. 
>
> Something like (^\d+)#(.*)$ . . . (?!\1) 
>
> BTW, in googling for info, I found this page 
>
>  
>
> Which appears to simply be an html-ization of a portion of the BBEdit 
> manual. 
>
> -- 
> "There's sex and death and human grime in monochrome for one thin dime 
> and at least the trains all run on time but they don't go anywhere." 
>
>

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
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 bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.