ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Buffer with syntax highlighting
@ 2016-02-17 12:16 Procházka Lukáš Ing.
  2016-02-17 12:35 ` Hans Hagen
  2016-02-17 12:39 ` Marco Patzer
  0 siblings, 2 replies; 4+ messages in thread
From: Procházka Lukáš Ing. @ 2016-02-17 12:16 UTC (permalink / raw)
  To: ConTeXt

Hello,

is it possible to \typebuffer with a syntax highlighting?

\typefile allows to specific syntax highlighter, e.g. \typefile[TEX]{file.tex};
\typebuffer does not (AFAIK).

It would be useful to have:

\startbuffer[demo]
   \startitemize
     \item Hello!
   \stopitemize
\stopbuffer

which would get the original code and its result:

"
Sample code:
\typebuffer[demo][syntax=ConTeXt] % Specify syntax highlighter, show the code
produces:
\getbuffer[demo] % Result
"

Is it possible somehow?

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Buffer with syntax highlighting
  2016-02-17 12:16 Buffer with syntax highlighting Procházka Lukáš Ing.
@ 2016-02-17 12:35 ` Hans Hagen
  2016-02-17 12:39 ` Marco Patzer
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2016-02-17 12:35 UTC (permalink / raw)
  To: ntg-context

On 2/17/2016 1:16 PM, Procházka Lukáš Ing. wrote:
> Hello,
>
> is it possible to \typebuffer with a syntax highlighting?
>
> \typefile allows to specific syntax highlighter, e.g.
> \typefile[TEX]{file.tex};
> \typebuffer does not (AFAIK).
>
> It would be useful to have:
>
> \startbuffer[demo]
>    \startitemize
>      \item Hello!
>    \stopitemize
> \stopbuffer
>
> which would get the original code and its result:
>
> "
> Sample code:
> \typebuffer[demo][syntax=ConTeXt] % Specify syntax highlighter, show the
> code
> produces:
> \getbuffer[demo] % Result
> "
>
> Is it possible somehow?

the 'option' key does that (option=tex)


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Buffer with syntax highlighting
  2016-02-17 12:16 Buffer with syntax highlighting Procházka Lukáš Ing.
  2016-02-17 12:35 ` Hans Hagen
@ 2016-02-17 12:39 ` Marco Patzer
  2016-02-17 13:43   ` Procházka Lukáš Ing.
  1 sibling, 1 reply; 4+ messages in thread
From: Marco Patzer @ 2016-02-17 12:39 UTC (permalink / raw)
  To: ntg-context

On Wed, 17 Feb 2016 13:16:03 +0100
Procházka Lukáš Ing. <LPr@pontex.cz> wrote:

> is it possible to \typebuffer with a syntax highlighting?

\typebuffer
  [demo]
  [option=context]

Also have a look at Aditya's vim syntax highlighter module which is
great.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Buffer with syntax highlighting
  2016-02-17 12:39 ` Marco Patzer
@ 2016-02-17 13:43   ` Procházka Lukáš Ing.
  0 siblings, 0 replies; 4+ messages in thread
From: Procházka Lukáš Ing. @ 2016-02-17 13:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

That's it, thank you! Lukas


On Wed, 17 Feb 2016 13:39:47 +0100, Marco Patzer <lists@homerow.info> wrote:

> On Wed, 17 Feb 2016 13:16:03 +0100
> Procházka Lukáš Ing. <LPr@pontex.cz> wrote:
>
>> is it possible to \typebuffer with a syntax highlighting?
>
> \typebuffer
>   [demo]
>   [option=context]
>
> Also have a look at Aditya's vim syntax highlighter module which is
> great.
>
> Marco
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-17 13:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-17 12:16 Buffer with syntax highlighting Procházka Lukáš Ing.
2016-02-17 12:35 ` Hans Hagen
2016-02-17 12:39 ` Marco Patzer
2016-02-17 13:43   ` Procházka Lukáš Ing.

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).