Re: Auto-fill CSS values and shortcut for wrapping HTML tags around selected text?

2011-01-11 Thread Matt Martini
Guys,

You may want to try my extended css clippings.  They take the form of:

text-align: <#left|center|right|justify#>;
font-style: <#normal|italic#>;

So now when you choose the clipping text-align then hit tab BBE
highlights <#left|center|right|justify#>, you can then type in center
and move on.  I know it is not totally automated, but it does give
you the common options of the css tags.

You can find the clippings at:

http://www.barebones.com/support/bbedit/clippings_library.html#css_ext

or via git at:

https://github.com/mattmartini/BBEdit-Clippings-for-CSS

Enjoy,

Matt





On Jan 11, 2011, at 7:59 PM, mhulse wrote:

> Hi!
> 
> Two questions (using BBEdit 9.6.2):
> 
> 1.
> 
> How can I have BBEdit fill-in CSS property values?
> 
> When I am working via a CSS doc, BBEdit will auto-fill/suggest CSS
> properties, but not values. The closest BBEdit comes to suggesting
> anything is this:
> 
> <##>
> 
> Which is fine. Here is an explanation of what the above is supposed to
> be:
> 
> [[
> 
> The "<##>" is a "placeholder"; if you press the Tab key or use "Go to
> Next Placeholder" (or "Go to Previous Placeholder") on the Search
> menu, it gets selected and you can simply type to fill it in.
> 
> ]]
> 
> I don't know about ya'll, but that is not so helpful to me... I don't
> typically write out properties and then go back and fill-in the
> values.
> 
> Any tips on how to get BBEdit to auto-fill values also? Are there any
> plugins? Am I just missing something here?
> 
> I personally think Dreamweaver does a great job at hinting/auto-
> filling CSS (and many other langs). I wish BBEdit had the hint/auto-
> fill feature of DW.

-- 
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: 


Re: Auto-fill CSS values and shortcut for wrapping HTML tags around selected text?

2011-01-11 Thread Alex Satrapa
On 12/01/2011, at 15:19 , Alex Satrapa wrote:

> Clippings menu (that's the "C" in a circle)
> -> Change Set -> CSS.css

Oops! I missed a bit - you need to set the document type to CSS, either by 
saving the file as .css, or picking CSS from the content type menu at 
the bottom of the window.

> 
> Now you type
> 
>> ru[tab]


-- 
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: 


Re: Auto-fill CSS values and shortcut for wrapping HTML tags around selected text?

2011-01-11 Thread Alex Satrapa
On 12/01/2011, at 15:09 , ryentzer wrote:

> I would like 
> I find that a lot of times when writing css I have to use several
> keystrokes to write out a tag without any properties.

Clippings menu (that's the "C" in a circle)
-> Change Set -> CSS.css

Now you type

> ru[tab]


And you get

> <#selector#> {
>   <#rules#>
> }


Now pressing tab again will repeatedly shift between the placeholders.

HTH
HAND

-- 
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: 


Re: Auto-fill CSS values and shortcut for wrapping HTML tags around selected text?

2011-01-11 Thread ryentzer
I would like to see BBEdit have the option to auto close brackets.
I find that a lot of times when writing css I have to use several
keystrokes to write out a tag without any properties.
Let's say I am styling the p tag, if I know in advance I'm going to
have more than one property I do the following:
p
space
{
return
return
}
up arrow
tab


p {
   /*begin typing*/
}

where inserting the property:value  would be the next step. It takes 8
steps to get to the tab. It would seem to speed up the coding if I
when I hit return after the opening bracket if BBEdit would return
twice insert a closing bracket, up arrow once tab over and have it
waiting for me to type. I've used ide's that offer this and it is a
huge time saver. I know not everyone likes this but for those that do
it would be a great implementation.

another thing is when I'm typing in html and type say <##> More often than not I'm
backspacing so I can add a class, id or some other attribute. It would
be nice if we could somehow tweak the clippings for our preferences.

Overall I love using BBEdit. Great app.

-- 
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: 


Re: Auto-fill CSS values and shortcut for wrapping HTML tags around selected text?

2011-01-11 Thread Micky Hulse
Wow! Thanks to everyone for being so helpful! I really appreciate it!

I can't wait to test out your suggestions.

I will post back with my findings. :)

Thanks a billion!

Cheers,
Micky

-- 
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: 


Re: Auto-fill CSS values and shortcut for wrapping HTML tags around selected text?

2011-01-11 Thread mhulse
On Jan 11, 6:10 pm, Ron Fleckner  wrote:
> for tagging the selected text, I use this AppleScript.  It live's in BBEdit's 
> Application Support/Scripts and I've given it the keyboard shortcut of 
> Shift-Command-t

Awesome! Thanks for that pro tip Ron! Much appreciated. This is gonna
make my life easier. :)

-- 
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: 


Re: Auto-fill CSS values and shortcut for wrapping HTML tags around selected text?

2011-01-11 Thread Kendall Conrad
I suggest using the Zen Coding scripts I made (http://
www.angelwatt.com/coding/zen-coding_bbedit.php), which allow for
quickly writing HTML including wrapping it around selected text. This
can also help with your CSS. You can use the abbreviation "bgr:n" and
that expands to "background-repeat: no-repeat;"

-Kendall

On Jan 11, 7:59 pm, mhulse  wrote:
> Hi!
>
> Two questions (using BBEdit 9.6.2):
>
> 1.
>
> How can I have BBEdit fill-in CSS property values?
>
> When I am working via a CSS doc, BBEdit will auto-fill/suggest CSS
> properties, but not values. The closest BBEdit comes to suggesting
> anything is this:
>
> <##>
>
> Which is fine. Here is an explanation of what the above is supposed to
> be:
>
> [[
>
> The "<##>" is a "placeholder"; if you press the Tab key or use "Go to
> Next Placeholder" (or "Go to Previous Placeholder") on the Search
> menu, it gets selected and you can simply type to fill it in.
>
> ]]
>
> I don't know about ya'll, but that is not so helpful to me... I don't
> typically write out properties and then go back and fill-in the
> values.
>
> Any tips on how to get BBEdit to auto-fill values also? Are there any
> plugins? Am I just missing something here?
>
> I personally think Dreamweaver does a great job at hinting/auto-
> filling CSS (and many other langs). I wish BBEdit had the hint/auto-
> fill feature of DW.
>
> 2.
>
> In Dreamweaver, I can select some text and use Command-T to wrap
> selected text with an HTML tag.
>
> Is there something similar in BBEdit? I really miss this feature as it
> speeds up some of the mundane HTML formatting work.
>
> Thanks!
> Micky

-- 
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: 


Re: Auto-fill CSS values and shortcut for wrapping HTML tags around selected text?

2011-01-11 Thread Rich Siegel
On Tuesday, January 11, 2011, mhulse  wrote:

> In Dreamweaver, I can select some text and use Command-T to wrap
> selected text with an HTML tag.
> 
> Is there something similar in BBEdit? I really miss this feature as it
> speeds up some of the mundane HTML formatting work.

Try the "Tag Maker" command on the Markup menu.

Enjoy,

R.
-- 
Rich Siegel Bare Bones Software, Inc.
  

Someday I'll look back on all this and laugh... until they sedate me.

-- 
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: 


Re: Auto-fill CSS values and shortcut for wrapping HTML tags around selected text?

2011-01-11 Thread Ron Fleckner

On 12/01/2011, at 12:32 PM, mhulse wrote:

> On Jan 11, 4:59 pm, mhulse  wrote:
>> When I am working via a CSS doc, BBEdit will auto-fill/suggest CSS
>> properties, but not values. The closest BBEdit comes to suggesting
>> anything is this:
>> <##>
> 
> I guess I should give BBEdit some credit... It does suggest some
> values... But most of the time I find myself wishing I was using DW
> for the auto-fill/hinting. :D
> 
> For example, when typing "background-repeat" property, and trying to
> give it a value of "no-repeat", here is what BBEdit suggests:
> 
> http://sandbox.hulse.me/bbedit.png
> 
> Not sure why it does not suggest no-repeat? Maybe the dash throws it
> off?
> 
> Seems like this part of BBEdit could be improved.
> 
> Don't get me wrong, I love BBEdit, and I use it as my primary coding
> app... I am just hoping there are some options I can configure/turn on
> to make my coding experience better/faster. :)
> 
> Tips would be appreciated.
> 
> Thanks!
> Micky


Hi Micky,

for tagging the selected text, I use this AppleScript.  It live's in BBEdit's 
Application Support/Scripts and I've given it the keyboard shortcut of 
Shift-Command-t

-- script

tell application "BBEdit"


set theText to selection

set d to display dialog "Enter the tag" default answer ""
set theTag to text returned of d
set theText to "<" & theTag & ">" & return & theText & return & ""
set selection to theText

end tell

-- end script

Ron



-- 
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: 


Re: Auto-fill CSS values and shortcut for wrapping HTML tags around selected text?

2011-01-11 Thread mhulse
On Jan 11, 4:59 pm, mhulse  wrote:
> When I am working via a CSS doc, BBEdit will auto-fill/suggest CSS
> properties, but not values. The closest BBEdit comes to suggesting
> anything is this:
> <##>

I guess I should give BBEdit some credit... It does suggest some
values... But most of the time I find myself wishing I was using DW
for the auto-fill/hinting. :D

For example, when typing "background-repeat" property, and trying to
give it a value of "no-repeat", here is what BBEdit suggests:

http://sandbox.hulse.me/bbedit.png

Not sure why it does not suggest no-repeat? Maybe the dash throws it
off?

Seems like this part of BBEdit could be improved.

Don't get me wrong, I love BBEdit, and I use it as my primary coding
app... I am just hoping there are some options I can configure/turn on
to make my coding experience better/faster. :)

Tips would be appreciated.

Thanks!
Micky

-- 
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: 


Auto-fill CSS values and shortcut for wrapping HTML tags around selected text?

2011-01-11 Thread mhulse
Hi!

Two questions (using BBEdit 9.6.2):

1.

How can I have BBEdit fill-in CSS property values?

When I am working via a CSS doc, BBEdit will auto-fill/suggest CSS
properties, but not values. The closest BBEdit comes to suggesting
anything is this:

<##>

Which is fine. Here is an explanation of what the above is supposed to
be:

[[

The "<##>" is a "placeholder"; if you press the Tab key or use "Go to
Next Placeholder" (or "Go to Previous Placeholder") on the Search
menu, it gets selected and you can simply type to fill it in.

]]

I don't know about ya'll, but that is not so helpful to me... I don't
typically write out properties and then go back and fill-in the
values.

Any tips on how to get BBEdit to auto-fill values also? Are there any
plugins? Am I just missing something here?

I personally think Dreamweaver does a great job at hinting/auto-
filling CSS (and many other langs). I wish BBEdit had the hint/auto-
fill feature of DW.

2.

In Dreamweaver, I can select some text and use Command-T to wrap
selected text with an HTML tag.

Is there something similar in BBEdit? I really miss this feature as it
speeds up some of the mundane HTML formatting work.

Thanks!
Micky

-- 
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: 


Re: Mac App Store for BBEdit?

2011-01-11 Thread Rich Siegel
On Tuesday, January 11, 2011, Steve deRosier 
 wrote:



I hope that BB intends on keeping the command-line tools/authenticated
save as they're things many of us actually use!


There is no intention for those features to go anywhere, as I 
hoped to have made amply clear by this time. :-)


R.
--
Rich Siegel Bare Bones Software, Inc.
  

Someday I'll look back on all this and laugh... until they 
sedate me.


--
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: 


Domain Specific Languages (Specifically Ruby/Ruby on Rails specific) in BBEdit

2011-01-11 Thread Ryan Wilcox
Greetings list.

First time poster, long time BBEdit user here. Today I found myself in
BBEdit, editing 4 very long Ruby on Rails files. This worked well
until I had to navigate around in those files.

You see, these files were written using a Domain Specific Language, on
top of Ruby, called Shoulda[1], which gives us an easy way to test RoR
apps. Shoulda files look like this:

context "As a user trying to log into the system, I"
   should "be able to access the home page" do
# some kind of test here
   end

  should "have my username and password accepted" do
 # and more tests
  end

end

Now imagine 1,000 lines of that, because neither the context nor the
should lines show up in the BBEdit function popup. And why should
they? Functions in Ruby start with "def", not should but Shoulda

So it was a little hard to navigate.

So I started thinking, and ended up writing a Python script to make it
easier to navigate Shoulda files. You can see my work at: 

Ultimately this is a proof of concept script - I need to be able to
support other DSLs, and I'd like to be able to handle user specific
ones (maybe someone else writes an RSpec version (another Domain
Specific Language on top of BBEdit), for example). However, I thought
I'd get the word out there, and see if the wider community was
interested.

See also: my blog post talking about it: 

Looking forward to hearing from folks,
_Ryan Wilcox

Footnotes:
  [1] https://github.com/thoughtbot/shoulda


--
Wilcox Development Solutions:   
Providing People with Solutions   PGP: 0x2F4E9C31

-- 
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: 


Re: Mac App Store for BBEdit?

2011-01-11 Thread Steve deRosier
On Tue, Jan 11, 2011 at 1:38 PM, Rich Siegel  wrote:
>
> the products are identical (with a specific nod made to the command-line
> tools/authenticated save issue, which we intend to be strictly temporary).
>

I hope that BB intends on keeping the command-line tools/authenticated
save as they're things many of us actually use!

- Steve

-- 
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: 


Re: Mac App Store for BBEdit?

2011-01-11 Thread Rich Siegel

On Tuesday, January 11, 2011, LuKreme  wrote:


And is it possible to 'upgrade' a Mac App Store version to the 'real'
version (both for BBEdit and TextWrangler).


It is not. The Mac App Store and our direct sales operations 
live in parallel universes, and there is no means, technical or 
otherwise, to "convert" a license between one or the other. For 
TextWrangler, which is free, this doesn't really matter since 
nothing is lost if you overwrite one with the other. For BBEdit, 
it could get expensive for you to do that. :-)


Apart from that, there's really no reason *why* you'd want to do 
that, since the products are identical (with a specific nod made 
to the command-line tools/authenticated save issue, which we 
intend to be strictly temporary).


R.
--
Rich Siegel Bare Bones Software, Inc.
  

Someday I'll look back on all this and laugh... until they 
sedate me.


--
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: 


Re: Mac App Store for BBEdit?

2011-01-11 Thread Patrick Woolsey
LuKreme 
[...]
>And is it possible to 'upgrade' a Mac App Store version to the 'real'
>version (both for BBEdit and TextWrangler).
>

Since I'm not certain what you mean by the above, can you please clarify?
(i.e. are you asking about licensing, functionality, or otherwise?)



Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.
P.O. Box 1048, Bedford, MA 01730-1048

-- 
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: 


Re: Mac App Store for BBEdit?

2011-01-11 Thread LuKreme
On 10-Jan-2011, at 19:33, Walter Ian Kaye wrote:
> 
> At 10:31 a -0500 01/10/2011, Patrick Woolsey didst inscribe upon an 
> electronic papyrus:
>> Herbert Schulz  sez:
 A: In BBEdit and TextWrangler, authenticated saves (the ability to save
 changes to files that you do not own) and the command-line tools are not
 available in the App Store versions, in order to comply with Apple's
 submission guidelines. We are currently at work on a solution; if this
 affects you, please watch this space for developments.
>>> 
>>> The implication is that the updates available directly from BB still have
>>> those features enabled but it doesn't really say that, does it?
>> 
>> There are no changes to these features in the directly-available version;
>> the above applies only to the App Store version.
> 
> How do you know which is which? Are they different version numbers, or the 
> same app with some internal switch?

And is it possible to 'upgrade' a Mac App Store version to the 'real' version 
(both for BBEdit and TextWrangler).


-- 
How soon after the U.S. Postal Service issues the Calvin stamp will you
send a letter with one on the envelope?  Watterson: Immediately. I'm
going to get in my horse and buggy and snail-mail a check for my
newspaper subscription.

-- 
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: