netr0n / zen-coding

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

i wanna create a new php(or java) class with zencoding #348

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
demo on php:

cls.People>pubv.name+prov.salary+priv.secret+pubf.__construct+prof.say+prif.eat+
pubf.__destruct

<c-j>

class People{
  public $name;
  protected $salary;
  private $secret;

  public function __construct(){

  }
  protected function say(){

  }
  private function eat(){

  }

  public function __destruct(){

  }
}

Original issue reported on code.google.com by wxs77...@gmail.com on 6 Aug 2012 at 8:18

GoogleCodeExporter commented 8 years ago
pubv -> public variable

prof -> protected function

Original comment by wxs77...@gmail.com on 6 Aug 2012 at 8:19

GoogleCodeExporter commented 8 years ago
I don’t think you should do that with Zen Coding, it’s not designed for 
this.

Anyway, you can create a couple of snippets, like this:
`"cls": "class ${class} {\n\t${child}${0}\n}"

Original comment by serge....@gmail.com on 6 Aug 2012 at 11:11

GoogleCodeExporter commented 8 years ago
thanks.

Original comment by wxs77...@gmail.com on 7 Aug 2012 at 4:00