From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73860 Path: news.gmane.org!not-for-mail From: Richard Weickelt Newsgroups: gmane.comp.tex.context Subject: Syntax highlighting for C-code Date: Fri, 13 Jan 2012 12:00:32 +0100 Message-ID: <4F100ED0.4000608@weickelt.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1326537159 21679 80.91.229.12 (14 Jan 2012 10:32:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2012 10:32:39 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 14 11:32:31 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rm0uU-0007Zi-8a for gctc-ntg-context-518@m.gmane.org; Sat, 14 Jan 2012 11:32:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9B992CB1E7; Sat, 14 Jan 2012 11:32:24 +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 Qdg65H3ViAJM; Sat, 14 Jan 2012 11:32:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E9E7CCB1DF; Sat, 14 Jan 2012 11:32:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3A8A2CB1D3 for ; Fri, 13 Jan 2012 12:00:52 +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 905gGsWfymfn for ; Fri, 13 Jan 2012 12:00:43 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id D77CCCB1DC for ; Fri, 13 Jan 2012 12:00:35 +0100 (CET) Original-Received: from dd15512.kasserver.com (dd15512.kasserver.com [85.13.136.190]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0DB0YTa015100 for ; Fri, 13 Jan 2012 12:00:35 +0100 Original-Received: from [141.23.91.206] (unknown [141.23.91.206]) by dd15512.kasserver.com (Postfix) with ESMTPSA id 44FC26C00F3 for ; Fri, 13 Jan 2012 12:00:33 +0100 (CET) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110921 Thunderbird/3.1.15 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=85.13.136.190; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08GkX0ysx - 0459bbd73c0d - 20120113 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Mailman-Approved-At: Sat, 14 Jan 2012 11:32:04 +0100 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:73860 Archived-At: Hi, I've tried to include some C-code into my document, but failed to enable syntax highlighting. Tested on: linux-64, context-2011.05.18 (same with the beta) stand-alone mkIV 1) \starttyping[option=C] just prints verbatim text. There seems to be no formatter for C out of the box. 2) t-vim did not work. It failed somewhere (unknown command sequence \installspacehandler) on loading (\usemodule[vim]) 3) http://wiki.contextgarden.net/Verbatim_text I tried to download pret-c and put it into the modules folder, but writing \installprettytype[C][C] failed, because it's not known (in mkIV). 4) mkII does not complain to exec \installprettytype[C][C], but this does not change anything either. \starttyping[option=C] seems to call a (maybe builtin?) formatter, but I could not get colors to work. I'm also lost in the documentation, because there are many places talking about syntax-highlighting. Does this thing work for anybody or is ist just my installation? Thanks Richard ___________________________________________________________________________________ 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 ___________________________________________________________________________________