Received: by 10.204.151.213 with SMTP id d21mr2037817bkw.0.1343647955712; Mon, 30 Jul 2012 04:32:35 -0700 (PDT) X-BeenThere: zen-coding@googlegroups.com Received: by 10.204.143.140 with SMTP id v12ls4554171bku.6.gmail; Mon, 30 Jul 2012 04:32:34 -0700 (PDT) Received: by 10.205.126.4 with SMTP id gu4mr2032047bkc.8.1343647954375; Mon, 30 Jul 2012 04:32:34 -0700 (PDT) Received: by 10.205.126.4 with SMTP id gu4mr2032046bkc.8.1343647954352; Mon, 30 Jul 2012 04:32:34 -0700 (PDT) Return-Path: Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by gmr-mx.google.com with ESMTPS id j4si2882435bkj.3.2012.07.30.04.32.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Jul 2012 04:32:34 -0700 (PDT) Received-SPF: pass (google.com: domain of serge....@gmail.com designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of serge....@gmail.com designates 209.85.217.178 as permitted sender) smtp.mail=serge....@gmail.com; dkim=pass header...@gmail.com Received: by lbbgj10 with SMTP id gj10so3263020lbb.9 for ; Mon, 30 Jul 2012 04:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type; bh=Tco5sQNptRrzNcZqkToV8ZxnUMA/PYj4lQUpMkMh74M=; b=Ob/9qP0BPc0txfcsQilISnYzFiZDOA3gUsegDSZwNayTLjpBj7Gke+qlih2F7YnPye Bco+un9VlN2CRQdKUVyqoM//pAQYaXbuJK7QDK3tvZviLNfX7tNMUKwqgEaeHbqN8d2M 3rUvhzWfZDNcPOqZJIVOG6FrGIvwc26b3rv07Hvy043wQZSBGklVCG9I19saml8Spdh0 bREtM0rWOxumr+YvH5Qva8uoiTmJEL/vNPYViD4bCCLoJE2otrv+sH0yXW3zVMyP+6yy xBzvA70jWbwHGt807ip/O0BBEu480ERq+3Msabu8dBSGSqWG6tnvRBXU3eW6KR5GNGcG WCrw== Received: by 10.112.88.106 with SMTP id bf10mr5161689lbb.43.1343647953921; Mon, 30 Jul 2012 04:32:33 -0700 (PDT) Return-Path: Received: from [10.0.3.68] (x00.hq.bigbuzzy.ru. [91.233.131.226]) by mx.google.com with ESMTPS id b3sm2133254lbh.6.2012.07.30.04.32.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Jul 2012 04:32:33 -0700 (PDT) Date: Mon, 30 Jul 2012 15:32:29 +0400 From: Sergey Chikuyonok To: zen-coding@googlegroups.com Message-ID: <986086F5B06347E7931196F00E86E...@gmail.com> In-Reply-To: <5832fa6a-d417-44db-8292-3defcadef073@googlegroups.com> References: <68c95667-d41d-452a-83af-78ef6d4f95bb@googlegroups.com> <1CEE71C4D1184918B5C11AF6A9AC3...@gmail.com> <5832fa6a-d417-44db-8292-3defcadef073@googlegroups.com> Subject: Re: looking for how to support XQuery in ZendCoding, is there any guide for this? X-Mailer: sparrow 1.6.2 (build 1143.6) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="501670cd_1716703b_1ff" --501670cd_1716703b_1ff Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =5BAs a follow-up: try to use v0.8 plugin: https://github.com/sergeche/ze= n-coding/downloads=5D As is said, you have to modify getSyntax() method of editor proxy: https:= //github.com/sergeche/zen-coding/blob/v0.7.1/plugins/npp/editor.js=23L91 = (it=E2=80=99s a source code, the plugin has all files concatenated into s= ingle file). =20 You need to make sure that real syntax name used by N++ is xqy, not query= or something else. Otherwise, you need to change syntax name in Zen Codi= ng snippets. Or you can just add your snippets to html syntax. =20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F =D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9 =D0=A7=D0=B8=D0=BA=D1=83=D1=91=D0=BD= =D0=BE=D0=BA http://chikuyonok.ru serge.che=40gmail.com On Monday, July 30, 2012 at 7:23 AM, Deitek Systems wrote: > Hi Serge > =20 > I'm trying removing the filter section as follows: > =20 > =5BCode=5D > 'xqy': =7B > 'snippets': =7B > 'nsosm2': 'declare namespace;' > =7D, > 'abbreviations': =7B > 'nsosm': 'declare namespace osm;' > =7D > =7D, > =20 > =5BCode=5D =20 > =20 > But when I want in notepad using Ctrl+E after I write the abbreviation = as follows: > =20 > nsosm > =20 > I can not get the expected output: declare namespace osm > =20 > but this expands the abbreviation as follows: > =20 > > =20 > How could obtain the expected output achieved =3F > =20 > =20 > Regards, > =20 > David A Leon H > Deitek Systems > =20 > On Sunday, July 29, 2012 2:08:28 PM UTC-5, Sergey Chikuyonok wrote: > > 1. There's no 'xqy' filter, you shouldn't define it in 'filters' sect= ion. Better remove 'filters' at all. =20 > > 2. You should also modify getSyntax() method so it can correctly matc= h syntax for required files. > > =20 > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > > =D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9 =D0=A7=D0=B8=D0=BA=D1=83=D1=91=D0= =BD=D0=BE=D0=BA > > http://chikuyonok.ru > > serge.che=40gmail.com (mailto:serge.che=40gmail.com) > > =20 > > =20 > > =20 > > On Sunday, July 29, 2012 at 11:03 PM, Deitek Systems wrote: > > =20 > > > Hi > > > =20 > > > =20 > > > I'm looking for how to support XQuery in ZendCoding, is there any g= uide for this=3F > > > =20 > > > I've tried using the following syntax in the zend=5Fcoding.js =46il= e of notepad++, =20 > > > =20 > > > =5BCode=5D > > > =20 > > > 'xqy': =7B > > > 'filters': 'xqy', > > > 'snippets': =7B > > > 'nsosm2': 'declare namespace;' > > > =7D, > > > 'abbreviations': =7B > > > 'nsosm': 'declare namespace osm;' > > > =7D > > > =7D, > > > =20 > > > =20 > > > =5BCode=5D =20 > > > =20 > > > but I could not get what I need. > > > =20 > > > =20 > > > Someone could give me some help=3F > > > =20 > > > =20 > > > Regards, > > > =20 > > > =20 > > > David Alejandro Leon H > > > Deitek Systems > > > =20 > > > =20 > > > =20 > > =20 > > =20 --501670cd_1716703b_1ff Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=5BAs a follow-up: try to use v0.8 plugin: http= s://github.com/sergeche/zen-coding/downloads=5D

=
As is said, you have to modify getSyntax() method of = editor proxy: https://github.com/sergeche/zen-coding/blob/v0.7.1/plu= gins/npp/editor.js=23L91 (it=E2=80=99s a source code, the plugin has all = files concatenated into single file).
You need to make sure that real syntax name us= ed by N++ is xqy, not query or something else. Otherwise, you need to cha= nge syntax name in Zen Coding snippets.

Or you c= an just add your snippets to html syntax. 

=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F
=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9 =D0=A7=D0=B8= =D0=BA=D1=83=D1=91=D0=BD=D0=BE=D0=BA
http://chikuyonok.ru
s= erge.che=40gmail.com

=20

On Monday, July 30, 20= 12 at 7:23 AM, Deitek Systems wrote:

Hi Serge

I'm tryin= g removing the filter section as follows:

=5B= Code=5D
'xqy':= =7B
'snippets': =7B=
'nsosm2': 'decla= re namespace;'
=7D= ,
'abbreviations':= =7B
'nsosm': 'de= clare namespace osm;'
=7D
=7D,
<= /div>
=5BCode=5D 

But when I want = in notepad using Ctrl+E after I write the abbreviation as follows:
<= div>
nsosm

I can not get the expec= ted output: declare namespace osm

but this expan= ds the abbreviation as follows:

<nsosm> &l= t;/ nsosm>

How could obtain the expected outp= ut achieved =3F


Regards,

David A Leon H
Deitek Systems

On Sund= ay, July 29, 2012 2:08:28 PM UTC-5, Sergey Chikuyonok wrote:
1. There's no 'xqy' filter, you shouldn't define it = in 'filters' section. Better remove 'filters' at all.
2. You should also modify getSyntax() method s= o it can correctly match syntax for required files.

=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
=D0=A1=D0=B5=D1=80=D0=B3=D0=B5= =D0=B9 =D0=A7=D0=B8=D0=BA=D1=83=D1=91=D0=BD=D0=BE=D0=BA
=20

On Sunday, July 29, 2012= at 11:03 PM, Deitek Systems wrote:

Hi


= I'm looking for how to support XQuery in ZendCoding, is there any guide f= or this=3F

I've tried using the following sy= ntax in the zend=5Fcoding.js =46ile of notepad++, 

=5BCode=5D

'xqy': =7B
'filters': 'xqy',
'snippets': =7B
'nsosm2': 'declare namespace;'
=7D,
'abbreviations': =7B
'nsosm': 'declare namespace osm;'
=7D
=7D,

=5BCode=5D 

but I could not get what I need.

=

Someone could give me some help=3F


Regards,


David Alejandro Leon H
Deitek Systems
= =20 =20 =20 =20

=20 =20 =20 =20
=20

--501670cd_1716703b_1ff--