I hope this isn't off-topic for this thread... but I have an alternative,
somewhat related idea. I'm still using BBEdit 9.6.3, but I'm guessing
there's still nothing like this in version 10 (?).

When I drag an image into a BBEdit HTML document, the dialog asks me whether
I want BBEdit to enter the dimensions of the image. I say yes (leave it
checked), but I usually don't really want the dimensions in the inline HTML
code. After the img tag is inserted by BBEdit, I typically...

1. Add an ID to the image's HTML tag
2. Create a new CSS rule in the styles section of the document's head, with
a selector using the same ID as the image
3. Transfer (cut and paste) the width and height that BBEdit inserted for
me, from the HTML in the body to the new CSS rule in the head, which of
course means changing its format slightly from HTML to CSS
4. Later, I may transfer the rule again from the document's head to a linked
CSS stylesheet

None of this is onerous, but I think it would be nice if BBEdit could
automate some of this. There could be a text-entry box in the original
Insert Image dialog box asking me if I'd like to make up an ID. If I entered
an ID there, BBEdit could then *not* enter the dimensions inline, but rather
create the rule for me in the head (and even create a style section in the
head if it doesn't already have one), using the corresponding ID as the
selector, and put the dimensions there.

Going even further, there could also be a "Background Image" checkbox in the
original insert-image dialog box. If checked, that would put a different src
in the HTML tag (not sure how the interface for that would work) and then,
instead of referencing the image I just dragged into the HTML tag, insert it
as a declaration in the styles section -- like this: background-image:
url(foo/bar.jpg).

Also I'd like a checkbox asking me what color pony I want (silver), and
offering me free shipping.

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
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>

Reply via email to