From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80285 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Vim module - different settings for inline and block code Date: Wed, 16 Jan 2013 15:51:39 +0100 Message-ID: <20130116145139.GB29592@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0344855053==" X-Trace: ger.gmane.org 1358347913 14019 80.91.229.3 (16 Jan 2013 14:51:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2013 14:51:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 16 15:52:12 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TvULa-0001zX-Lr for gctc-ntg-context-518@m.gmane.org; Wed, 16 Jan 2013 15:52:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CD94F101EC; Wed, 16 Jan 2013 15:51:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hO8c9WNku6gF; Wed, 16 Jan 2013 15:51:52 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2BEE2101E5; Wed, 16 Jan 2013 15:51:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8B2DE101E5 for ; Wed, 16 Jan 2013 15:51:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nWzM0XtstK6z for ; Wed, 16 Jan 2013 15:51:49 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 5D397101E2 for ; Wed, 16 Jan 2013 15:51:49 +0100 (CET) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0GEpkKE031949 for ; Wed, 16 Jan 2013 15:51:47 +0100 Original-Received: from c.earth.lavabit.com (c.earth.lavabit.com [192.168.111.12]) by karen.lavabit.com (Postfix) with ESMTP id 4DF7911BD2B for ; Wed, 16 Jan 2013 08:51:45 -0600 (CST) Original-Received: from homerow (83.68.239.193) by lavabit.com with ESMTP id JS7TGYHTXYJX for ; Wed, 16 Jan 2013 08:51:45 -0600 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=liEUKCEnTwYhjklcKLNXyK51QRaLZ6EIue6VX2usFejPuwqHr+1kiiIYXkOnAnSoglVrWCwmoeK4m9u1DDt63/KoulK3gTcXP66ShemumxG3vPtGIWpJTp07AjfNDkuiCVPNHfg9UyuQXB6d9i0JrN3e7P85GIe68fwdq6RCnBY=; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition:User-Agent; Mail-Followup-To: mailing list for ConTeXt users User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0171 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.249.41.33; country=US; region=TX; city=Dallas; postalcode=75204; latitude=32.8019; longitude=-96.7883; metrocode=623; areacode=214; http://maps.google.com/maps?q=32.8019,-96.7883&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NIMCPK15 - ab7b5862aa8e - 20130116 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80285 Archived-At: --===============0344855053== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cmJC7u66zC7hs+87" Content-Disposition: inline --cmJC7u66zC7hs+87 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I need different settings for code in inline and block mode. See the following example: \usemodule [vim] \definetextbackground [C] [location=3Dtext] \definevimtyping [C] [syntax=3Dc, before=3D{\starttextbackground[C]}, after=3D\stoptextbackground, margin=3D2em] \starttext This is C: \inlineC{int foo();}. \blank \startC int foo(){ return 0; } \stopC \stoptext Inline code needs =E2=80=9Clocation=3Dtext=E2=80=9D, block code on the othe= r hand needs =E2=80=9Clocation=3Dparagraph=E2=80=9D as text background setting. Su= re, I can create two environments =E2=80=9CCinline=E2=80=9D and =E2=80=9CCblock=E2=80= =9D, but that feels clumsy. What's the proper way to set up different backgrounds for inline and block code? Marco --cmJC7u66zC7hs+87 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJQ9r57AAoJEPGqVaNSn0iKF0kH/2J8e93hJbR5kcCNU2oZZyK0 vZ9gGq5W0p/66obyfNk9giaQHkj1WXqy4AsVTEcuV27VMJagJw1FQ9DVILqeyDlR HdfqhkQOCZOj1p40RiRLWw3Q1wCiPNv+DXwphMdGLBJSZPNFVVgGeJRUiFAN5JYf IPZ/XNpJHuSISzJand+GFLaStb9svh47lOfHxLre28ju28OwHUt8RAEZpvVuhDk9 laHkm/2qPsuqI5UuaJFkI6x6QZJIxqab6X301ZEqlJLId12JClSK23Z34mdR2BOJ pno+dhsubKUSHJjpzHEtHU7ZbGw6eN2MKTiYOomOY2VKPZK5dwvtVwx8tq2bP3w= =UhwH -----END PGP SIGNATURE----- --cmJC7u66zC7hs+87-- --===============0344855053== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0344855053==--