ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: nico <nicolas.marsgui@libertysurf.fr>
Subject: Re: verb-c and tabulator width
Date: Wed, 26 Apr 2006 20:25:09 +0200	[thread overview]
Message-ID: <ops8mn37x49niby6@localhost> (raw)
In-Reply-To: <Pine.LNX.4.58.0604261939230.4589@gaston.pm>

On Wed, 26 Apr 2006 19:43:48 +0200 (CEST), Peter Münster <pmlists@free.fr>  
wrote:

> Hello,
> thanks to Nikolai for the verb-c module!
>
> One (probably there will come more) question:
> How could I adjust the width of the tabulator?

Use the tab option (not specific to C):

\usemodule[verb-c]
\setupcolors[state=start]
\starttext

\startC[tab=2]
if (i == 0) {
	a = b;
} else {
	a = c;
}
\stopC

\startC[tab=4]
if (i == 0) {
	a = b;
} else {
	a = c;
}
\stopC

\startTEX[tab=8]
\startC[tab=4]
if (i == 0) {
	a = b;
} else {
	a = c;
}
\stopC
\stopTEX

\stoptext

Regards,
BG

  reply	other threads:[~2006-04-26 18:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-26 17:43 Peter Münster
2006-04-26 18:25 ` nico [this message]
2006-04-26 19:26   ` Peter Münster
2006-04-26 20:14     ` nico

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=ops8mn37x49niby6@localhost \
    --to=nicolas.marsgui@libertysurf.fr \
    --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).