ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Chris Rawnsley" <rawprawns@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Syntax highlighted output
Date: Sun, 29 Apr 2007 16:56:20 +0100	[thread overview]
Message-ID: <a1dc3f560704290856qa03ada9t3320200a7795c741@mail.gmail.com> (raw)
In-Reply-To: <alpine.WNT.0.98.0704291037520.212@nqvgln>

On 29/04/07, Aditya Mahajan <adityam@umich.edu> wrote:
> The nuts and pieces are there, but right now there is no such
> function. Here is what you can do. Write a batch script which calls
> 2context (see the complete command in \runvimsyntax in t-vim). Run it
> on the file that you want. After loading t-vim, add the following line
>
> \let\runvimsyntax\gobbleoneargument

I can't get it to work. I've added that line and then I've used the
syntax you posted previously:

\typevimfile[convert=no][copy.tmp]

Returns the error:

File does not exist. (Or more precisely:
[file [ does not exist]
Copy.tmp] )

> For making the line numbers always appear on the left, add this code
> after loading t-vim.
>
> \unprotect
>
> \def\showvimlinenumber
>    {\inleft%was \inmargin%TODO: make configurable
>        {\dostartattributes\??vs\c!numberstyle\c!numbercolor\empty
>         \countervalue{vimlinenumber}
>         \dostopattributes}}
>
> \protect
>

That works a charm. Thanks you for doing this so quick!

> Strange, I thought that with your font setup ConTeXt should fall back
> to latin modern mono. Anyway, Wolfgang's suggestion should work and
> will give you latin modern mono scaled properly to match Palatino's
> height.

Yep. It's sorted itself out now.

> Don't worry. I made this module to just have the features that I
> needed. As a result, there are lot of things that are missing from the
> module. Your effort to make the module work has been a good feedback
> to me.

Ah that's good. Well I'll try and give as much as you can bear! :)

--
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
___________________________________________________________________________________


  reply	other threads:[~2007-04-29 15:56 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a1dc3f560704280301g7cfa1e92rcb1d684e85053912@mail.gmail.com>
2007-04-28 10:04 ` Chris Rawnsley
2007-04-28 10:59   ` luigi scarso
2007-04-28 14:06     ` Chris Rawnsley
2007-04-28 16:23   ` Aditya Mahajan
2007-04-28 16:28     ` Aditya Mahajan
2007-04-28 18:09       ` Chris Rawnsley
2007-04-28 18:26         ` Aditya Mahajan
2007-04-28 19:36           ` Chris Rawnsley
2007-04-28 19:41             ` Chris Rawnsley
2007-04-28 19:50     ` Chris Rawnsley
2007-04-28 20:10       ` Chris Rawnsley
2007-04-28 20:23         ` Aditya Mahajan
2007-04-28 20:25         ` Chris Rawnsley
2007-04-28 20:33           ` Aditya Mahajan
2007-04-28 20:49             ` Chris Rawnsley
2007-04-28 21:17               ` Aditya Mahajan
2007-04-28 22:16                 ` Chris Rawnsley
2007-04-29  1:57                   ` Aditya Mahajan
2007-04-29 11:38                     ` Chris Rawnsley
2007-04-29 13:12                       ` Wolfgang Schuster
2007-04-29 15:48                         ` Chris Rawnsley
2007-04-29 14:53                       ` Aditya Mahajan
2007-04-29 15:56                         ` Chris Rawnsley [this message]
2007-04-29 16:07                           ` Aditya Mahajan
2007-04-29 18:09                             ` Chris Rawnsley
2007-04-29 18:43                               ` Aditya Mahajan
2007-04-29 18:48                                 ` Aditya Mahajan
2007-04-29 19:38                                   ` Chris Rawnsley
2007-04-30  4:30                                     ` Aditya Mahajan
2007-04-29 18:57                               ` Chris Rawnsley

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=a1dc3f560704290856qa03ada9t3320200a7795c741@mail.gmail.com \
    --to=rawprawns@gmail.com \
    --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).