Sublime Forum

Zen Coding ( CSS Snippets )

#201

Oh, no, what happened to sublimator!? It seems he deleted his forum account here, too. :frowning: I hope heā€™s okay.

What exactly was his role with regard to integrating Zen Coding and ST2? It seems the main Zen Coding project is continuing along. What did sublimator do to convert that repository into something that works with ST2?

0 Likes

#202

I got a message from sublimator indicating it needs a new home and maintainer. I will hopefully at least get a copy of it back online in the next day or two. After that we can try to work out finding a more permanent maintainer.

0 Likes

#203

Iā€™m happy to host stuff and also happy to be a maintainer if someone can give me a maintaining 101 for sublime plugin hosting :wink:

0 Likes

#204

mhm thats really sad, i think sublimator was one of the most important plugin developers for sublimetext. but of course i guess personal circumstances are the reasons, so itā€™s absolutely comprehensible.

0 Likes

#205

I really appreciate U adapting Zen Coding (ZC) for UE.

I was wondering if U had tried it with CSS snippets which ZC has ā€¦e.g.

bdcl:c ā€¦ hot key inserts border-collapse:collapse;

I changed function getEditorType (around line 1290) to return ā€˜cssā€™ & tried some css snippets and it seems to work fine as long as the abbr snippet doesnā€™t have a ā€˜:ā€™ like the example above ā€¦ here the entry point isnā€™t correct and a pattern of deleting line 1 , col 1 char, but bdcl hot key ā€¦ abbr snippet without : ā€¦doesnā€™t suffer from same problem.

Wondered if U had tried it or had plans to w/ cssā€¦ regardless if you do or donā€™t a much appreciated contribution.

Updateā€¦ altered how the replacement text was inserted and now it handles css abbr with/without the colon : whereas before the colon was a problem. Still the heavy lifting was down by Echopark.

0 Likes

#206

ZenCoding is now available via Package Control. wbond.net/sublime_packages/package_control

0 Likes

#207

I have had much frustration with this so called Zen Coding over the past few days.
Basically ā€œtabā€ refuses to expand any abbreviation that I type and there is no CSS or html hints. (and yes I have saved the file as .html first)
Installed it with package control found at wbond.net/sublime_packages/package_control
But Iā€™ve also tried downloading various versions of it and putting them in the packages folder myself to no avail.
Could someone please help me, Iā€™m starting to give up hope for sublime text and may be forced to go back to Dreamweaver if I canā€™t get Zen to work.

Is there some sort of secret setting that Iā€™m missing that only people in the know, know of. Iā€™ve tried looking through zen-coding.sublime-settings & a few other files in the Zen Coding folder but I canā€™t see any key bindings settings or anything that looks like it will fix it.

0 Likes

#208

@ cameronelkin,

Have you used any Zen Coding before? While this plugin can do a lot of things, itā€™s main focus is adding Zen Coding (code.google.com/p/zen-coding/) to ST2. For example, if you type: html>head+body>div#nav>ul>li*3>a+div#content>h1+p, and then press either TAB or Ctrl+Space, zencoding expands the text to: [code]



























[/code]
0 Likes

#209

[quote=ā€œcameronelkinā€]I have had much frustration with this so called Zen Coding over the past few days.
Basically ā€œtabā€ refuses to expand any abbreviation that I type and there is no CSS or html hints. (and yes I have saved the file as .html first)
Installed it with package control found at wbond.net/sublime_packages/package_control
But Iā€™ve also tried downloading various versions of it and putting them in the packages folder myself to no avail.
Could someone please help me, Iā€™m starting to give up hope for sublime text and may be forced to go back to Dreamweaver if I canā€™t get Zen to work.

Is there some sort of secret setting that Iā€™m missing that only people in the know, know of. Iā€™ve tried looking through zen-coding.sublime-settings & a few other files in the Zen Coding folder but I canā€™t see any key bindings settings or anything that looks like it will fix it.[/quote]

It wasnā€™t working for me too since i installed the ā€œnewā€ version yesterday. After deleting all the .pyc files from the ZenCoding Package plus this one: Packages/User/my_zen_settings.pyc and after disabling most of the other plugins i have installed it is working now. It is still working with the other plugins enabled again, so i am not sure where the problem was.

You can also try resetting the application (http://www.sublimetext.com/docs/2/revert.html) and installing package control and zen coding and restarting the application. Just to see if it is working.

0 Likes

#210

Fixed it with a full re-install of sublime 2 and ZenCoding, abbreviations now expand.

0 Likes

#211

I have just installed ZenCoding package through Package Control but it fails to work. The following is output in the console:

Reloading plugin /Users/kev/Library/Application Support/Sublime Text 2/Packages/ZenCoding/sublimezen.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 57, in reload_plugin
  File "./sublimezen.py", line 25, in <module>
    import zencoding
  File "./zencoding/__init__.py", line 1, in <module>
    import utils
ImportError: No module named utils
Reloading plugin /Users/kev/Library/Application Support/Sublime Text 2/Packages/ZenCoding/sublimezenplugin.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 57, in reload_plugin
  File "./sublimezenplugin.py", line 12, in <module>
    from zencoding.parser.abbreviation import ZenInvalidAbbreviation
  File "./zencoding/__init__.py", line 1, in <module>
    import utils
ImportError: No module named utils

Any ideas on how to get this working?

Thanks.

0 Likes

#212

I THINK I KNOW WHY ZEN CODING STOPS ABBREVIATING.

i tried using zen coding which i installed via package control with html5 which I also installed from package control. it doesnā€™t expand abbreviations
but under plain html it does.
when i switch to html5 it doesnā€™t!

ok now it wonā€™t work anywhereā€¦ once i install html5 it stops working altogether.
CONFIRMED! i disabled html5 package and it started working again

0 Likes

#213

Hi,

I wrote a month ago about problem with ZC in css files. Can somebody confirm that this is just my issue or itā€™s problem with plugin?

Thanks

Examples:
CTRL + SPACE when Zen is enabled.
http://img502.imageshack.us/img502/6470/sublime.jpg

CTRL + SPACE when Zen is disabled.
http://img26.imageshack.us/img26/9844/sublimewithoutzen.jpg

0 Likes

#214

Did a quick test. With Zen enabled the coursinfo reference works.

0 Likes

#215

Did some test again i think i found when bad behavior occur. If is new line on end of the file everything works ok. If somewhere inside of the file it doesnā€™t work.



0 Likes

#216

you are right! I have the same behaviour, seems to be a bug. Quite interesting that no one found this annoying before :wink:

0 Likes

#217

Maybe I write too much css :smiley: Hope somebody will fix this.

0 Likes

#218

i have an issue why bitbucket doesnt let me load the repository thanks in advance

0 Likes

#219

The package is no longer on Bitbucket. To install, youā€™ll have to use Package Control (http://wbond.net/sublime_packages/package_control)

0 Likes

#220

Iā€™ve installed Package Control. Please could someone tell me how to install Zen Coding using it?

Thanks

0 Likes