sshixin / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

Enhancements #213

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Some improvements

To the best of my knowledge, there’s no easy way to travel back up the tree. 
For example, if I create a ul > li*4 selector, I’m not aware of a way to 
filter back up to the ul, and then create a sibling element.
There isn’t a way to assign innerHTML to an element. Wouldn’t it be great 
if I could type, ul>li {Some Text Here}?
I don’t believe there’s a way to tab between stops, after you expand.

I'm not to experienced in python but maybe I could help get these changes made.

Thanks Tim

Original issue reported on code.google.com by timothyb...@gmail.com on 27 Oct 2010 at 12:56

GoogleCodeExporter commented 8 years ago
You can use parenthesis for grouping, like this:
`div>(ul>li*4)+#content`

About assigning innerHTML: I really don't like the idea how people treats Zen 
Coding. You should'n use a single abbreviation to write a full page markup, but 
use small abbreviations to write small chunks of code. Thus you don't need to 
think a lot about full page markup and how to convert it to a single 
abbreviation, as well as have less errors in output. The only usage for 
innerHTML is to write a placeholders, not a real data. And these placeholders 
you can be written later in current ZC implementation using tab stops 
traversing.

Original comment by serge....@gmail.com on 27 Oct 2010 at 2:01

GoogleCodeExporter commented 8 years ago
Text nodes support added in github repo, will be available in the next version

Original comment by serge....@gmail.com on 28 Nov 2010 at 2:50

GoogleCodeExporter commented 8 years ago

Original comment by serge....@gmail.com on 5 Dec 2010 at 4:23