mennake / zen-coding

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

We want command line zencoding #225

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As a linux user, i wanted to have a command-line tool that reads input or 
params and sumps html generated to stdout.

I tried to interface zencoding.zen_core.expand_abbreviation that way:

<code>
import zencoding.zen_core
abbr = 'html:xxs>h1+p+ul>li*3'
print abbr
print zencoding.zen_core.expand_abbreviation(abbr)
</code>

But the result has some garbage and misses EOL and tabulation information (as 
shown in notepad++)

Original issue reported on code.google.com by gerard.m...@gmail.com on 17 Dec 2010 at 2:01

GoogleCodeExporter commented 9 years ago
Sorry, this is not a defect, maybe an EditorSuppport ¿?

Original comment by gerard.m...@gmail.com on 17 Dec 2010 at 2:02

GoogleCodeExporter commented 9 years ago
It doesn't have any garbage: it contains some placeholders that should be 
replaced with those ones that parent editor can understand. Read plugin HOWTO 
about how to create new editor support: 
https://github.com/sergeche/zen-coding/wiki/Plugin-HOWTO

Original comment by serge....@gmail.com on 17 Dec 2010 at 2:30