ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Making a verbatim file for another language
Date: Wed, 27 Dec 2006 16:41:03 -0500 (EST)	[thread overview]
Message-ID: <alpine.WNT.0.81.0612271631090.2488@nqvgln> (raw)
In-Reply-To: <C54C1101-CC36-4105-834C-6BDAA9189F15@mac.com>

On Tue, 26 Dec 2006, cormullion@mac.com wrote:

> After looking at these files a bit more closely, I decided I didn't 
> have a week to spare. Too much to learn and too few instructions. For 
> now I'm sticking with plain old black verbatim code listings. 
> Sometimes one has to set one's sights a little lower...! :-)

Is there vim syntax file for your language? Mojca and I are working on 
a module which uses VIM syntax highlighting to pretty print verbatim 
files. It is almost release quality right now. The following features 
are working.

You can define

\defineVIMtyping [MATLAB]  [syntax=matlab]

and then use

\startMATLAB
....
\stopMATLAB

where the result is pretty printed.

A whole file can be printed using

\definetypeVIMfile [typeMATLAB] [syntax=matlab]

\typeMATLAB[file.m]

You can select the lines of the file to print, though there is no 
support for showing linenumbers yet.

The script is slooow, and the delay is noticable for anything close to 
1000 lines. But a few 100 lines should work just fine.

If you have vim and are interested in testing, you can be the first 
tester of the module :)

Aditya

  reply	other threads:[~2006-12-27 21:41 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-25  9:24 cormullion
2006-12-25 10:38 ` Taco Hoekwater
2006-12-25 15:22   ` cormullion
2006-12-26 16:59   ` Henning Hraban Ramm
2006-12-26 18:47     ` Mojca Miklavec
2006-12-26 21:25       ` cormullion
2006-12-27 21:41         ` Aditya Mahajan [this message]
2006-12-28  8:15           ` cormullion
2006-12-28 17:09             ` Aditya Mahajan
2006-12-28 18:05               ` cormullion
2006-12-28 23:47                 ` Mojca Miklavec
2006-12-29  8:46                   ` cormullion
2006-12-29 13:09                     ` Mojca Miklavec
2006-12-29 15:37                       ` Aditya Mahajan
2006-12-29 15:42                       ` cormullion
2006-12-29 15:59                         ` Aditya Mahajan
2006-12-29 16:36                           ` cormullion
2006-12-29 18:39                         ` Mojca Miklavec
2006-12-30  9:22               ` Jarimatti Valkonen
2006-12-30 14:18                 ` cormullion
2006-12-30 21:24                   ` Jarimatti Valkonen
2006-12-31 11:51                     ` cormullion
2006-12-31 13:40                       ` Mojca Miklavec
2006-12-31 16:57                         ` cormullion
2006-12-25 18:12 ` Mojca Miklavec
2006-12-25 19:37   ` Aditya Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.WNT.0.81.0612271631090.2488@nqvgln \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).