ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: Tomas Hala <tomas.hala@mendelu.cz>
Cc: NTG-Context ConTeXt users <ntg-context@ntg.nl>
Subject: Re: pretty printers
Date: Wed, 8 May 2019 22:59:18 +0200	[thread overview]
Message-ID: <e630ed1c-ccbb-db29-8f3f-c5661f35e104@gmail.com> (raw)
In-Reply-To: <20190508204203.GC544@akela.mendelu.cz>



Tomas Hala schrieb am 08.05.2019 um 22:42:
> Wed, May 08, 2019 ve 10:14:45PM +0200 Wolfgang Schuster napsal(a):
> # Tomas Hala schrieb am 08.05.2019 um 21:58:
> # >Hi all,
> # >
> # >according to our wiki, there are pretty printers in ConTeXt
> # >implemented only for TEX, LUA, XML and MP.
> # >
> # >I am searching now for PHP pretty printer but I did not find
> # >anything on the net (only C and Java). I would like to ask
> # >whether is something for PHP (or for other programming languages)
> # >available.
> #
> # 1. Use the scite module which provides additional styles (e.g. cpp
> # or json) but php is still missing.
> #
> # 2. Use Aditya's vim module which uses vim to highlight source code.
> #
> # Wolfgang
>
> Maybe it is a misunderstanding but how can use these modules
> in ConTeXt? I had in mind typesetting the code in ConTeXt
> like \startTEX etc.

1. Scite module

\usemodule [scite]

\starttext

\startCPP
#include<iostream>

using namespace std;

int main()
{
     cout << "Hello World\n";
     return 0;
}
\stopCPP

\stoptext


2. Vim module

See Aditya's mail.


Wolfgang

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2019-05-08 20:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-08 19:58 Tomas Hala
2019-05-08 20:14 ` Wolfgang Schuster
2019-05-08 20:42   ` Tomas Hala
2019-05-08 20:55     ` Aditya Mahajan
2019-05-08 21:05       ` Tomas Hala
2019-05-08 20:59     ` Wolfgang Schuster [this message]
2019-05-08 21:08       ` Tomas Hala

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=e630ed1c-ccbb-db29-8f3f-c5661f35e104@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=tomas.hala@mendelu.cz \
    /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).