Home Download Buy Blog Forum Support

Zen Coding ( CSS Snippets )

Re: Zen Coding ( CSS Snippets )

Postby handycam on Thu Mar 15, 2012 10:51 am

I can confirm this. Workaround is easy:

select the block
split into lines (shift-command-L)
invoke command as before, ctrl-alt-enter
type p
Mac OS 10.8.5
ST 3 (3053)
handycam
 
Posts: 269
Joined: Tue Jan 03, 2012 2:42 pm

Re: Zen Coding ( CSS Snippets )

Postby [-Stash-] on Thu Mar 22, 2012 12:11 pm

handycam wrote:I can confirm this. Workaround is easy:

select the block
split into lines (shift-command-L)
invoke command as before, ctrl-alt-enter
type p


Thanks for the work around, it'll certainly come in useful until the issue is fixed - but it doesn't help much with things like ul>li*>p (I have other far more complex haiku's than this, but it illustrates the issue just fine).

Yeah, I know, you could just do li*>p and then reselect the list and ul it, but that's taking half of the benefit of Zen Coding.

Thanks again handycam.
[-Stash-]
 
Posts: 6
Joined: Wed Aug 03, 2011 3:06 pm

Re: Zen Coding ( CSS Snippets )

Postby technobulka on Wed Mar 28, 2012 6:43 pm

Hi!

Before Sublime i used Notepad++ and use Zen as:
#page>.logo ... -> press Ctrl+E -> profit!
but in Sublime it look like this:
Press Ctrl+Alt+Enter -> #page>.logo ... -> press Enter -> profit!

How to config Sublime like Notepad++?
Nowhere can not find anything on this issue.
technobulka
 
Posts: 15
Joined: Wed Mar 28, 2012 6:32 pm

Re: Zen Coding ( CSS Snippets )

Postby C0D312 on Wed Mar 28, 2012 10:41 pm

Don't press ctrl+alt+enter. Type #page>.logo then press TAB.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Zen Coding ( CSS Snippets )

Postby technobulka on Thu Mar 29, 2012 9:58 am

don't work
technobulka
 
Posts: 15
Joined: Wed Mar 28, 2012 6:32 pm

Re: Zen Coding ( CSS Snippets )

Postby technobulka on Thu Mar 29, 2012 10:07 am

it's work in css, but not currectly:
d:b -> Tab -> d:background
must be:
d:b -> Tab -> display:block;
technobulka
 
Posts: 15
Joined: Wed Mar 28, 2012 6:32 pm

Re: Zen Coding ( CSS Snippets )

Postby bizoo on Thu Mar 29, 2012 10:11 am

technobulka wrote:don't work

Yes it works.
The file must use HTML syntax (showing in the lower right corner of ST2).
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Zen Coding ( CSS Snippets )

Postby technobulka on Thu Mar 29, 2012 12:11 pm

I found mistake in my zen-coding.sublime-settings. zen in html working, but in css it still don't work. may be I upload my settings and you show me my mistakes?))
technobulka
 
Posts: 15
Joined: Wed Mar 28, 2012 6:32 pm

Re: Zen Coding ( CSS Snippets )

Postby bizoo on Thu Mar 29, 2012 12:38 pm

technobulka wrote:I found mistake in my zen-coding.sublime-settings. zen in html working, but in css it still don't work. may be I upload my settings and you show me my mistakes?))

If you refer to this:
technobulka wrote:it's work in css, but not currectly:
d:b -> Tab -> d:background
must be:
d:b -> Tab -> display:block;

I think that it's caused by the snippets of the CSS package:
If you look at the completion list, display:block is at the bottom of it.

If you select it, I suppose next time this will be the default value.
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Zen Coding ( CSS Snippets )

Postby technobulka on Thu Mar 29, 2012 5:37 pm

damn! nothing dont work. ((
i try to set zen on ctrl+space or ctrl+e, in html works one of two timese:
div - dont work
#id - work
in css:
c - canvas - why?!! i need color:#|; ((
pos:a - pos:abbr - really sad ((

sublime is really awesome program, but i dont want leave it just because i can't set zen ((
also my is English is bad, difficult to understand.
technobulka
 
Posts: 15
Joined: Wed Mar 28, 2012 6:32 pm

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 13 guests