From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34501 Path: news.gmane.org!not-for-mail From: "Chris Rawnsley" Newsgroups: gmane.comp.tex.context Subject: Re: Syntax highlighted output Date: Sun, 29 Apr 2007 19:09:51 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1177870224 7317 80.91.229.12 (29 Apr 2007 18:10:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2007 18:10:24 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 29 20:10:21 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HiDqi-0002cL-JR for gctc-ntg-context-518@m.gmane.org; Sun, 29 Apr 2007 20:10:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 562661FC7A; Sun, 29 Apr 2007 20:10:06 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32263-04; Sun, 29 Apr 2007 20:09:59 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E69D81FC6F; Sun, 29 Apr 2007 20:09:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 335151FC45 for ; Sun, 29 Apr 2007 20:09:55 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00440-01-4 for ; Sun, 29 Apr 2007 20:09:52 +0200 (CEST) Original-Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.176]) by ronja.ntg.nl (Postfix) with ESMTP id 56AAA1FBFE for ; Sun, 29 Apr 2007 20:09:52 +0200 (CEST) Original-Received: by ik-out-1112.google.com with SMTP id c28so1393975ika for ; Sun, 29 Apr 2007 11:09:52 -0700 (PDT) Original-Received: by 10.82.187.16 with SMTP id k16mr10337359buf.1177870191991; Sun, 29 Apr 2007 11:09:51 -0700 (PDT) Original-Received: by 10.82.100.16 with HTTP; Sun, 29 Apr 2007 11:09:51 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:34501 Archived-At: On 29/04/07, Aditya Mahajan wrote: > Now after loading vim, add > \definevimtyping [typePHP] > [syntax=php, > before={\bgroup \let\runvimsyntax\gobbleoneargument}, > after={\egroup}] > > and then use > > \typePHP{copy.php} I can't get it to work. Firstly, when I use \definevimtyping and then \typePHP the system cannot find the definition for \typePHP. If I use \definetypevimfile instead of \definevimtyping it works. Unfortuantely this doesn't actually save time as it loads ViM for whatever is required. Now for some general feedback. At the moment, if a line wraps, the line number doesn't feature in the margin. I think the placement should be different, however. It currently looks something like: 11 require_once(BASE_DIR.'inc/html.php'); // HTML output 12 require_once(BASE_DIR.'inc/auth.php'); // Authorise user require_once(BASE_DIR.'inc/action.php'); // List of possi- 13 ble actions 14 require_once(BASE_DIR.'inc/calendar.php'); As you can see line 13 has wrapped but I would prefer it if the line number was on the line above. So like this: 11 require_once(BASE_DIR.'inc/html.php'); // HTML output 12 require_once(BASE_DIR.'inc/auth.php'); // Authorise user 13 require_once(BASE_DIR.'inc/action.php'); // List of possi- ble actions 14 require_once(BASE_DIR.'inc/calendar.php'); Also not all my lines are wrapping properly. For instance, a line like: if(!defined('BASE_DIR')) define('BASE_DIR',realpath(dirname(__FILE__).'/../').'/'); Other than that, I'm loving the output. -- Chris ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________