Sublime Forum

Zen Coding ( CSS Snippets )

#11

Thanks! It works :wink:

0 Likes

#12

[quote=“sublimator”]Dan,

I just put the command on my BB acount, and actually used some OO(
shudder), factoring out a DynamicSnippetBase you can inherit from so
you just need to implement create_snippet(self, abbr, args) as seen here

The view reference is available as self.view but you can always just
use the Base as an example if needs be. In any case you’ll have to
copy/paste the Base into your package. Dependencies between packages
is still an open problem.

Hopefully, it doesn’t have too many bugs as I haven’t thoroughly
checked it.[/quote]

this is great. Thanks, Dan

0 Likes

#13

Sublimator! Zen Coding Pakage is amazing! http://forums.disenteria.ru/style_emoticons/default/mol.gif

0 Likes

#14

awesome job Nick like always! :smile:
IM LOVING IT :slight_smile:

0 Likes

#15

Any documentation on how to use this?

0 Likes

#16

See the zen coding google page… then on sublime just press ctrl+alt+enter and enter ur zen coding pattern :smile:

0 Likes

#17

very impressive nick! well done

0 Likes

#18

[quote=“EJ12N”]

See the zen coding google page… then on sublime just press ctrl+alt+enter and enter ur zen coding pattern :smile:[/quote]

yup tried that and every combination of it and nothing happens, it also seems to have broken sublimes built in snippet completion.

I was expecting to type in html:xt press tab etc. I take it that doesn’t happen?

0 Likes

#19

I’ve opened the ouput panel and when I press your key combination I get:

>>> 
  File "<string>", line 0
    
    ^
SyntaxError: unexpected EOF while parsing
0 Likes

#20

maybe update AAA* ?

0 Likes

#21

[quote=“sublimator”]UPDATE

I just pushed version 1.1 of Zen Coding to BitBucket (up again, hurrah).
[/quote]

Just installed new beta 20091002 and Zen Coding 1.1. Zen Coding now not working :frowning:

0 Likes

#22

Oh, files from package was not installed completely. I extract files from package manually and all works great!

0 Likes

#23

Works for me… do you have any ideas which files were missing? Did you have an earlier version installed before installing 1.1?

0 Likes

#24

After installing Zen Coding package i have this files in zen coding package folder of sublime text:

dynamicsnippets.py dynamicsnippets.pyc initzen.py initzen.pyc zc.py zc.pyc
And Zen Coding not working.

After manual extraction from package i have this:

zencoding [folder] Default.sublime-keymap dynamicsnippets.py dynamicsnippets.pyc initzen.py initzen.pyc README.txt zc.py zc.pyc
And all works.

0 Likes

#25

http://forums.disenteria.ru/style_emoticons/default/icon_smile_blush.gif http://forums.disenteria.ru/style_emoticons/default/mol.gif

0 Likes

#26

This is a truly awesome plug-in!

I have a few bug reports.

  1. If I enter something like this…
select>option#item-$*3

The output select list is all on one line. Which isn’t that pretty.

  1. On two separate installs of Sublime 1.2.2 (with only poweruser added) I get the following problem when tabbing a new CSS document. Unless i press backspace after each tab the tabs naturally fan out. Bit annoying.

http://dl.getdropbox.com/u/497583/zen-tabs.png

  1. Most of the doctypes have xml:lang=“ru” in them. Perhaps it would be best to set this to english :smile:

Great plugin btw!

0 Likes

#27

Not sure what that means or where you set it :smile: But whatever the default for Sublime is I guess. I just type things like “pos:a” hit tab.

EDIT: It only seems to happen on new CSS properties added to new selectors though, if I add properties to an existing selector from an old document the tabbing works fine.

0 Likes

#28

Ok setting translateTabsToSpace true or false made no difference but removing PowerUser made it work.

0 Likes

#29

It works now. Thank you :smile:

0 Likes

#30

this is incredible.

but i’m having a hell of a time figuring out how to bring up the css selector. what is the key for that?

thanks.

0 Likes