Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mare  
View profile  
 More options May 10 2011, 4:21 am
From: mare <mmaar...@gmail.com>
Date: Tue, 10 May 2011 01:21:58 -0700 (PDT)
Local: Tues, May 10 2011 4:21 am
Subject: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
Hello,

I know it's beyond HTML and CSS but it would be nice if ZC supported
some simple script languages tags, like:
<? ?>
<?= ?>
<% %>
<%= %>

I think this simple feature would be a great help for PHP, JSP and
Ruby programmers.
Of course it can't easly go with all the ZC functionalities, but for
now, just resolving abbreviations (and wrapping with abbreviation)
would be nice. The '?', '=' and '%' characters have no special meaning
in ZC yet, as far as I know.

What do you think?

Good luck Zen Coding!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Chikuyonok  
View profile  
 More options May 10 2011, 4:32 am
From: Sergey Chikuyonok <serge....@gmail.com>
Date: Tue, 10 May 2011 12:32:45 +0400
Local: Tues, May 10 2011 4:32 am
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
You can always add custom snippets. Read SM tutorial about how to do this: http://www.smashingmagazine.com/2009/11/21/zen-coding-a-new-way-to-wr...

___________________________________________
Сергей Чикуёнок
http://chikuyonok.ru
serge....@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mare  
View profile  
 More options May 10 2011, 5:17 am
From: mare <mmaar...@gmail.com>
Date: Tue, 10 May 2011 02:17:16 -0700 (PDT)
Local: Tues, May 10 2011 5:17 am
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
Thank you,

it's rather here:
http://andrewblogs.com/blog/zen-coding-php-zen-coding-custom-snippet-...

On 10 Maj, 10:32, Sergey Chikuyonok <serge....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mare  
View profile  
 More options May 10 2011, 6:40 am
From: mare <mmaar...@gmail.com>
Date: Tue, 10 May 2011 03:40:36 -0700 (PDT)
Local: Tues, May 10 2011 6:40 am
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
Hello again,

I added some custom snippets to the zencoding.js, and:

'!' :   '<!-- | -->',  // this one works fine

// and none of  these do:
'?' :   '<? | ?>',
'%' :   '<% | %>',
'?=' :  '<?=|?>',
'%=' :  '<%=|%>'

Should I put it in defferent key then 'html'?

On 10 Maj, 11:17, mare <mmaar...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Chikuyonok  
View profile  
 More options May 10 2011, 7:25 am
From: Sergey Chikuyonok <serge....@gmail.com>
Date: Tue, 10 May 2011 15:25:18 +0400
Local: Tues, May 10 2011 7:25 am
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
'?' and '%' are illegal characters for snippet names

___________________________________________
Сергей Чикуёнок
http://chikuyonok.ru
serge....@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mare  
View profile  
 More options May 10 2011, 8:39 am
From: mare <mmaar...@gmail.com>
Date: Tue, 10 May 2011 05:39:19 -0700 (PDT)
Local: Tues, May 10 2011 8:39 am
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
Is it possible to allow them, though?

On 10 Maj, 13:25, Sergey Chikuyonok <serge....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Chikuyonok  
View profile  
 More options May 10 2011, 8:40 am
From: Sergey Chikuyonok <serge....@gmail.com>
Date: Tue, 10 May 2011 16:40:40 +0400
Local: Tues, May 10 2011 8:40 am
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
Only if you create your own fork.
Otherwise it will break backward compatibility

___________________________________________
Сергей Чикуёнок
http://chikuyonok.ru
serge....@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mare  
View profile  
 More options May 10 2011, 2:50 pm
From: mare <mmaar...@gmail.com>
Date: Tue, 10 May 2011 11:50:10 -0700 (PDT)
Local: Tues, May 10 2011 2:50 pm
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
Sergey, could you suggest, what changes should be done to accomplish
this? You know the code better ;)
I made a blind try to modify some regexps adding \? and \%, but with
no success.

On 10 Maj, 14:40, Sergey Chikuyonok <serge....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dérico Filho  
View profile  
 More options May 10 2011, 10:22 pm
From: Dérico Filho <uldericofi...@gmail.com>
Date: Tue, 10 May 2011 19:22:57 -0700 (PDT)
Local: Tues, May 10 2011 10:22 pm
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
I created an all-purpose zen-coding engine for UltraEdit and Notepad+
+, the last version can encapsulate reserved characters within curly
brackets (usually to escape other zen-coding special chars). In this
version you can do,

?>f#test[$a,$b]
<?php
        function test($a,$b){

        }
?>

with no special effort.

https://github.com/dericofilho/Zen-Coding-for-PHP---UltraEdit

On May 10, 3:50 pm, mare <mmaar...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mare  
View profile  
 More options May 11 2011, 4:02 am
From: mare <mmaar...@gmail.com>
Date: Wed, 11 May 2011 01:02:17 -0700 (PDT)
Local: Wed, May 11 2011 4:02 am
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
Great!

I'm looking forward for the Komodo Edit plugin

On 11 Maj, 04:22, Dérico Filho <uldericofi...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Chikuyonok  
View profile  
 More options May 11 2011, 4:09 am
From: Sergey Chikuyonok <serge....@gmail.com>
Date: Wed, 11 May 2011 12:09:13 +0400
Local: Wed, May 11 2011 4:09 am
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
mare, basically, you need to add your characters in isAllowedChar() method:
https://github.com/sergeche/zen-coding/blob/master/javascript/zen_cod...

...and modify validator regexp:
https://github.com/sergeche/zen-coding/blob/master/javascript/zen_par...

___________________________________________
Сергей Чикуёнок
http://chikuyonok.ru
serge....@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mare  
View profile  
 More options May 11 2011, 5:19 am
From: mare <mmaar...@gmail.com>
Date: Wed, 11 May 2011 02:19:32 -0700 (PDT)
Local: Wed, May 11 2011 5:19 am
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
Thank you Sergey!

Now I have all the above snippets working and the way for creating
others opened

On 11 Maj, 10:09, Sergey Chikuyonok <serge....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Derek Turner  
View profile  
 More options May 10 2011, 8:56 am
From: Derek Turner <frde...@cesmail.net>
Date: Tue, 10 May 2011 13:56:39 +0100
Local: Tues, May 10 2011 8:56 am
Subject: Re: Zen Coding and script languages tags (PHP, JSP, Ruby): <% %> <? ?> etc.
On 10/05/11 11:40, mare wrote:

> Hello again,

> I added some custom snippets to the zencoding.js, and:

> '!' :      '<!-- | -->',  // this one works fine

> // and none of  these do:
> '?' :      '<? | ?>',
> '%' :      '<% | %>',
> '?=' :     '<?=|?>',
> '%=' :     '<%=|%>'

try

  'qm' :        '<? | ?>',
  'pc' :        '<% | %>',
  'qme' : '<?=|?>',
  'pce' : '<%=|%>'


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »