Hi all,

I have written a script for BBEdit that someone here may find
<#useful|interesting|amusing#>

https://github.com/ollicle/BBEdit-Extract-Placeholder

Finally got around to playing with making some Clippings for my own use. In
a number of them I was using the placeholders to aid in the selection of
text portions that were to be optionally present. The initial intention of
the script was to simply remove BBEdit placeholder delimiters from around
the selected text, e.g. <#label#> => label

Naturally I got carried away and added more features :-)

As a side note, for the sake of it being possible, I really wanted to do
this with JavaScript (as now enabled in Yosemite), but failed to even get
the basics of getting and setting the selection working. I’ve seen a few
examples that use node.js but none of the native js support.

Cheers
Ollie
--
@ollicle

-- 
This is the BBEdit Talk public discussion group. 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: <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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.

Reply via email to