Does WeBuilder work with Zen-Coding ??

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
bwdude
Posts: 4
Joined: Mon Sep 28, 2009 1:07 pm

Does WeBuilder work with Zen-Coding ??

Post by bwdude »

Hi,

I found this beautiful timesaver for coding that I'd like to use: Zen-Coding.
They offer Versions for different editors, like Textmate and Topstyle, but not specifically for WeBuilder.

I was wondering if any one of those versions would work with WeBuilder (2007 currently ...) and what I would have to do to install it?

If it's not possible at the moment, is there a chance you can implement it in the future?
I watched the screencasts and I am amazed of what this Zen-Coding can do ... and it's free!

I don't know if I am allowed to publish the link here, if not please remove it:
http://code.google.com/p/zen-coding/

Thanks!
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: Does WeBuilder work with Zen-Coding ??

Post by Karlis »

As I understand the Zen-Coding simply is a set of code snippeds or pieces of code where by typing a shortcut word and pressing some key, it is replaced with full text.

So e.g. you enter html and press tab and it is replaced by <html></html>.

Well, the machinery for this IS already in place in WeBuilder 2008 and 2010. You can implement this in two ways:

1) Create code snippet in Library for each element and assign it a "callword" (short phrase that you would type). Entering callword and pressing Ctrl+J would replace it with the full code snippet. You can enter not only Zen-coding but create a set of your own snippets/templates/plugins. Ok, the only difference is that instead of Tab you have to press Ctrl+J.

2) This can be done also using Auto Replace, but currently multi-line texts are not supported.
Karlis Blumentals
Blumentals Software
www.blumentals.net
bwdude
Posts: 4
Joined: Mon Sep 28, 2009 1:07 pm

Re: Does WeBuilder work with Zen-Coding ??

Post by bwdude »

Hi,

thanks for the answer.

So I take that as a "no" for the implementation of Zen-Coding ??

Because it really is SO much mure than just code snippets.
Please do what I did and watch the two videos on their site and you'll see how powerful it really is. I am sure after a short learning curve I could write code twice as fast with it.

If it's not possible to use with WeBuilder now, is this something that is hard to implement and could you think of doing that in the future?

Thanks!
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Re: Does WeBuilder work with Zen-Coding ??

Post by MikeyB »

It does look good, but I think the Zen-Coding people have gone about it the wrong way.

Rather than trying to integrate it with individual editors which must be a lot of work, I think it should be a stand-alone program that intercepts the keyboard and then can be used with any program you have.

I use a program called AutoHotkey which does just that, and I have setup a lot of common snippets I use in the various editors I use, can use the same shortcut keyword what ever program I'm in.

Just my thoughts.
bwdude
Posts: 4
Joined: Mon Sep 28, 2009 1:07 pm

Re: Does WeBuilder work with Zen-Coding ??

Post by bwdude »

While it's true that a lot of Zen-Coding's functionality can be "simulated" by snippets and macros, what I am really after is the "intelligence" it has.

Sure I can type

Code: Select all

<LI>
and have it auto completed to

Code: Select all

<LI></LI>
But in Zen I type something like

Code: Select all

li:.mylist*5
(I am just making this up here, but the actual command is quite similiar)
and I end up with:

Code: Select all

<LI class="mylist">
<UL></UL>
<UL></UL>
<UL></UL>
<UL></UL>
<UL></UL>
</LI>
And THATS a real timesaver, since it works for almost all tags!

If it would be possible to have it "stand alone" and intercept keystrokes is beyond me since I do only HTML and PHP. It sure would be handy though ...
bwdude
Posts: 4
Joined: Mon Sep 28, 2009 1:07 pm

Re: Does WeBuilder work with Zen-Coding ??

Post by bwdude »

Karlis?
Any answers?
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Re: Does WeBuilder work with Zen-Coding ??

Post by syrupcore »

moving to feature requests.
carlosmossman
Posts: 12
Joined: Sun Aug 30, 2009 8:35 am

Re: Does WeBuilder work with Zen-Coding ??

Post by carlosmossman »

voting for it.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: Does WeBuilder work with Zen-Coding ??

Post by Karlis »

You can still type li press Ctrl+J and have <li></li> inserted or type li5 press Ctrl+J and have the full list inserted (if you have set it up to happen this way).
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Re: Does WeBuilder work with Zen-Coding ??

Post by notuo »

Karlis or anyone.

What is this Ctr-J? I verified my rapidphp and is not defined but if I apply as mentioned something appeared (something I sometime ago I defined and I not remember now when nor where). This lead me to 2 things:

1) Can you elaborate about this li5 thing you mentioned please?
2) Is there a way (maybe a new feature) to produce a list of all the shorcuts defined? showing if the are "fixed" (not able to be modified) and what are default by you and what are defined by user? I think this can be useful.

Regards
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Re: Does WeBuilder work with Zen-Coding ??

Post by syrupcore »

ctrl+j triggers the 'callword' on any snippet. if you make a snippet to produce <li></li> and assign the callword "li" to it (in the snippet window), you'd type li in the editor and hit ctrl+j and it would be replaced by the snippet.

you could make another with the callword 'li5' that had

Code: Select all

<ul>
	<li></li>
	<li></li>
	<li></li>
	<li></li>
	<li></li>
</ul>	
in it. where typing 'li5' and hitting ctrl+j would replace li5 with the above code. not quite zen coding but you can get a lot done this way.

I love this feature but ctrl+j just does not do it for me.
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Re: Does WeBuilder work with Zen-Coding ??

Post by notuo »

Hi syrupcore.

Thanks for the answer. I just reviewed all my snippets and got this covered.

Also I may found a bug. I'll post in the proper forum.

Regards
se7h
Posts: 15
Joined: Tue Nov 17, 2009 10:20 pm

Re: Does WeBuilder work with Zen-Coding ??

Post by se7h »

Zen Coding - excellent idea! I for it!
chemist
Posts: 6
Joined: Fri Aug 29, 2008 11:10 pm

Re: Does WeBuilder work with Zen-Coding ??

Post by chemist »

+1. Very useful feature.
WebDevelop
Posts: 7
Joined: Mon Dec 21, 2009 11:22 am

Re: Does WeBuilder work with Zen-Coding ??

Post by WebDevelop »

and +1 from Me!
Post Reply