Home Download Buy Blog Forum Support

Zen-coding

Zen-coding

Postby Perkin5 on Sat Sep 03, 2011 10:46 am

I have installed Zen-coding using Build 2111 and it has appeared in the package folder but I can't make it work. I have tried to expand a zen snippet using Tab but it just types a tab. In Dreamweaver I use Ctrl+; but that doesn't work in ST. I also note that under Preferences>Package Settings Zen does not appear - should it?

Any advice gratefully received.
Perkin5
 
Posts: 34
Joined: Sat Sep 03, 2011 10:36 am

Re: Zen-coding

Postby Perkin5 on Sat Sep 03, 2011 10:47 am

Sorry, should have added OS which is Windows XP
Perkin5
 
Posts: 34
Joined: Sat Sep 03, 2011 10:36 am

Re: Zen-coding

Postby Perkin5 on Sat Sep 03, 2011 11:07 am

I did use that. Actually I'm now getting results - I hadn't appreciated that the snippets were file extension dependent and I was experimenting in a new unsaved document. Problem now is that the default HTML snippets trump zen. How can I choose the zen option instead?
Perkin5
 
Posts: 34
Joined: Sat Sep 03, 2011 10:36 am

Re: Zen-coding

Postby Perkin5 on Sat Sep 03, 2011 12:03 pm

OK I'll do that - results shortly.

The folder is $APPDATA/Packages/ZenCoding and there are two folders inside that, one called scripts and the other called zencoding (with no capitals). zen_settings.py is in the inner one.
Perkin5
 
Posts: 34
Joined: Sat Sep 03, 2011 10:36 am

Re: Zen-coding

Postby ilovecode on Sat Sep 03, 2011 12:06 pm

I have just updated ST2 to 2110 and I can't use [TAB] to expand anything anymore ...
ilovecode
 
Posts: 9
Joined: Sat Sep 03, 2011 5:19 am

Re: Zen-coding

Postby Perkin5 on Sat Sep 03, 2011 12:17 pm

Don't know what all this means but here goes:

reloading /C/Documents and Settings/User/Application Data/Sublime Text 2/Packages/_ZenCoding/zen-coding.sublime-settings
Unloading plugin C:\Documents and Settings\User\Application Data\Sublime Text 2\Packages\_ZenCoding\dynamicsnippets.py
Unloading plugin C:\Documents and Settings\User\Application Data\Sublime Text 2\Packages\_ZenCoding\sublimezen.py
Unloading plugin C:\Documents and Settings\User\Application Data\Sublime Text 2\Packages\_ZenCoding\sublimezenplugin.py
Unloading plugin C:\Documents and Settings\User\Application Data\Sublime Text 2\Packages\_ZenCoding\zenmeta.py
Unloading plugin C:\Documents and Settings\User\Application Data\Sublime Text 2\Packages\_ZenCoding\zentrackers.py
found 5 files for base name Default.sublime-keymap
error: Error parsing snippet xml: Error document empty. In file Packages/HTML5/Elements/Embedded content/figure.sublime-snippet
Generating meta info summary
Generating meta info summary
Generating meta info summary
Generating meta info summary
Generating meta info summary
Generating meta info summary
Generating meta info summary
Generating syntax summary
reloading /C/Documents and Settings/User/Application Data/Sublime Text 2/Packages/ZenCoding/zen-coding.sublime-settings
ZenCoding: loading my_zen_settings from zen-settings.sublime-settings
Perkin5
 
Posts: 34
Joined: Sat Sep 03, 2011 10:36 am

Re: Zen-coding

Postby ilovecode on Sat Sep 03, 2011 12:19 pm

I get:

>>> import sublime_plugin
>>> sublime_plugin.all_callbacks['on_query_completions']
[<html_completions.HtmlCompletions object at 0x11392d310>, <python_codeintel.PythonCodeIntel object at 0x113c43050>, <sublimezenplugin.ZenListener object at 0x114255f10>]
ilovecode
 
Posts: 9
Joined: Sat Sep 03, 2011 5:19 am

Re: Zen-coding

Postby Perkin5 on Sat Sep 03, 2011 12:23 pm

Sorry, don't understand that
Perkin5
 
Posts: 34
Joined: Sat Sep 03, 2011 10:36 am

Re: Zen-coding

Postby ilovecode on Sat Sep 03, 2011 12:49 pm

But even when I manage to remove all the other completions from that array it doesn't change anything.
ilovecode
 
Posts: 9
Joined: Sat Sep 03, 2011 5:19 am

Re: Zen-coding

Postby ilovecode on Sat Sep 03, 2011 5:42 pm

Zen as you type is still working flawlessly. Earlier you were fixing a bug I reported on your original thread. After it, all was dandy and everything was working as expected. Then I installed the most recent version of ST2, which is 2110. After that all tab completions stopped working. I successfully altered sublimezenplugin.py to leave just the ZenListener inside the completions array but that didn't change anything.
Attachments
Bildschirmfoto 2011-09-03 um 19.41.37.png
Bildschirmfoto 2011-09-03 um 19.41.37.png (232.79 KiB) Viewed 2363 times
ilovecode
 
Posts: 9
Joined: Sat Sep 03, 2011 5:19 am

Next

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Majestic-12 [Bot] and 18 guests