From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16340 invoked by alias); 10 Jun 2013 15:38:05 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17828 Received: (qmail 8068 invoked from network); 10 Jun 2013 15:37:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.212.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=w2fe3/dddNteojl3JFIAvDknUPq0EWYCe0xJWnchRr0=; b=DIN9LoDOdRnvCF/EUikvbAVIl1AKUzMAwMxusqL6uSy2AyHpbxEhjVGRi7G3QU3xvS otnkLGi6o1g/YHhB2DGtm6XvFOy8roaUEBTsyQjPPr9vFwtGHlEORVryt+2H7cWUyhNB hINafpgqTFf06/xjVnhT47sC4JjcdlCkIsdPoqLuFLpAg5cR+QZLHfIumg1JVRhTOH3s tD+kQTyN9GhckXUBYyvniI5yK+9aO7XDmbXrq7J+uCQHDt7DyIDySotQHY6PeNNU+VTE Im9a299AeBmdRUv4pClHlRoCkuxY2oJXjwL62PLTFnLbLFhw+zPpHLRiUVvABa9K1yaI 2s6w== X-Received: by 10.194.6.99 with SMTP id z3mr354370wjz.57.1370878664785; Mon, 10 Jun 2013 08:37:44 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <130610082330.ZM29057@torch.brasslantern.com> References: <130610082330.ZM29057@torch.brasslantern.com> From: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= Date: Mon, 10 Jun 2013 17:37:29 +0200 Message-ID: Subject: Re: Highlighting the command line based on arbitrary rules To: "zsh-users@zsh.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2013/6/10 Bart Schaefer : > On Jun 10, 3:54pm, Richard Hartmann wrote: > } > } this may be approaching the clinically and/or criminally insane, but > } is it possible to highlight sections of the command based on arbitrary > } rules? > > Definitely. Google for zsh-syntax-highlight for an extreme example. > > Somebody probably even has a git plugin for that, but it's difficult > to search for, because of course the project is stored in github so > the addition of "git" to the search keywords is not helpful. > > One caveat is that zsh-syntax-highlighting is currently known to tickle > an obscure memory management bug somewhere in the depths of ZLE. We're > still hoping for somebody who can reproduce it to give us a valgrind or > similar debugging output. Probably overkill in this case, but you might be interested in zpython as well, see http://www.zsh.org/mla/workers/2013/msg00089.html . Best regards, --=20 J=C3=A9r=C3=A9mie