ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nicola <nvitacolonna@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Questions about Scite lexers
Date: Wed, 13 Apr 2016 19:25:40 +0200	[thread overview]
Message-ID: <nelvek$8pn$1@ger.gmane.org> (raw)
In-Reply-To: <570E684D.8090900@wxs.nl>

On 2016-04-13 15:39:57 +0000, Hans Hagen said:
> 
>> 6) It is my understanding that pret-xxx.lua files are obsolete. Is it
>> correct? (If so, it would be nice to update the wiki to reflect that).
> 
> no, they are not obsolete (the scite lexers are often also syntax
> checkers so they are more strict) ... the pret files are more or less
> working in the same way (they date from before scite got that kind of
> lexers)

Thanks for your answers. I'd like to go with \definetyping then, because
I need /BTEX../ETEX. I have found an old document of mine, which uses a
(slightly customized) pret-c.lua, located inside the project's folder.
It compiles, but I don't get syntax highlighting. Is it because pret-c
is not searched in the project's directory? (According to
http://wiki.contextgarden.net/Verbatim#Pretty_printing the file should
be found.) This is a minimal version:

\setupinteraction  [state=start]
\setupcolors       [state=start]
\setuptyping       [option=color]
\definetyping      [C][option=C, tab=4]
\definecolor       [Ccomment][darkblue]
\definetyping      [CPP]
                   [option=C,tab=2,
                   bodyfont=small]
\starttext
\startC
int main() { return 0; } // Comment
\stopC
\startCPP
int main() { return 0; } // Comment
\stopCPP
\stoptext

Nicola


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

  reply	other threads:[~2016-04-13 17:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-13 14:37 Nicola
2016-04-13 15:39 ` Hans Hagen
2016-04-13 17:25   ` Nicola [this message]
2016-04-13 17:31     ` Wolfgang Schuster
2016-04-13 17:51   ` Alan BRASLAU
     [not found] <mailman.448.1460568766.1989.ntg-context@ntg.nl>
2016-04-13 20:39 ` Christoph Reller
2016-04-14  5:10   ` Christoph Reller
2016-04-14 17:49     ` Nicola

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='nelvek$8pn$1@ger.gmane.org' \
    --to=nvitacolonna@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).