From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34488 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Syntax highlighted output Date: Sat, 28 Apr 2007 21:57:14 -0400 (EDT) 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 1177811858 14530 80.91.229.12 (29 Apr 2007 01:57:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2007 01:57:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 29 03:57:36 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 1HhyfO-0000GV-4E for gctc-ntg-context-518@m.gmane.org; Sun, 29 Apr 2007 03:57:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 63D831FFD0; Sun, 29 Apr 2007 03:57:33 +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 21121-02; Sun, 29 Apr 2007 03:57:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 853D31FFB7; Sun, 29 Apr 2007 03:57:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1BDAD1FFB7 for ; Sun, 29 Apr 2007 03:57:23 +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 21369-01 for ; Sun, 29 Apr 2007 03:57:18 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with ESMTP id A1CB31FFB4 for ; Sun, 29 Apr 2007 03:57:17 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hellskitchen.mr.itd.umich.edu ID 4633FB7B.87549.17761 ; 28 Apr 2007 21:57:15 -0400 In-Reply-To: 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:34488 Archived-At: On Sat, 28 Apr 2007, Chris Rawnsley wrote: > On 28/04/07, Aditya Mahajan wrote: >> Suppose you have a file called program.php. You create a batch file >> that runs the texmfstart bin:vim ... line to create >> program-vimsyntax.tmp file. Then in your ConTeXt code, you can say, >> >> \typevimfile[convert=no][program.php] > > Ah that's going to save me a bunch of time. Thank you. I will need two three days to work on this. >>> Just as a side note, is there a way to fix it so that line numberings >>> are always on the left? >> >> \sesupvimtyping[numbering=on] > > I've done that. I should've been more clear sorry. I've setup my pages > with the "alternative=doublesided" option. So for even numbered pages > I have numbering in the left margin like I want, however, for odd > pages it switches to the right side. Right now, this is not possible. Let me see if I can add this feature. >> By default, \tftt and \tt fonts are used for code listing. The easiest >> way to change to a different font is to use it as your >> default teletype font. If that is not possible, then you will need to >> define a new colorscheme, along the lines of the default colorscheme, >> but changing \v!mono with whatever font you want. > > Umm what's a teletype font for starters? A fixed width font is also called a teletype font. By default, the code listing should be in a fixed width font, so I thought that you were talking about how to use a different fixed width font. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________