On Mar 6, 2009, at 6:08 AM, stratboy wrote: > In other words, when I > write a tag, it auto-completes by himself, and when I close it, it > auto-closes.
and On Mar 7, 2009, at 12:11 PM, Robert A. Rosenberg wrote: > Even better would be to do the auto-complete when the tag is > inserted. IOW: If I type <ta, when it is completed it should become > <table>*</table) (where * is the cursor). That way you have the full > tag set there and can start to enter the tags/data that is to be > placed into the table. Have you tried BBEdit's powerful Clippings feature? It pretty much does exactly what you're looking for. See Chapter 12 (p. 283) in the user manual. With a good collection of clippings set up (BBEdit comes with quite a few and it's easy to create/edit your own) and the "Editing: General - > Show text completions" preference turned on, you've got your feature request. To insert a <table> tag, just type "ta" (leave out the brackets) and hit your completion shortcut (or let it happen automatically). Depending on the content of your selected clipping, BBEdit can insert the rest of the opening tag, a closing tag, additional tags in between (e.g. td tags), additional placeholders, move the cursor wherever you want, date and timestamps, AppleScript or shell script output, and more. It's extremely versatile and powerful. A similar result can be achieved with BBEdit's context-sensitive Markup -> Tag Maker command (p. 247). Hitting a shortcut opens a pick list of appropriate tags for the current context (based on cursor position). If only one tag is appropriate (e.g. an <li> tag inside a pair of <ul> tags), Tag Maker will just insert it automatically. Tag Maker is less flexible than using clippings but it requires virtually no configuration, so it's a little more approachable. But longer term, I think you'll be happier with clippings because of it's immense extensibility. With clippings, you can really insert anything you want, in any format you want. -Dennis --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. 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 specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "[email protected]" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---
