On Thu, Nov 6, 2014 at 1:36 PM, Pierre-François Bonnefoi <bonnefoi@unilim.fr> wrote:
Hello Luigi,

thank you for proposing a solution, but it's not suitable to my needs as it modifies the content of the typing region : the backlash is displayed

I know, infact I have said  "the first step is...": \gobbleuntil is quite lowlevel macro, it assumes that you do some TeX programming.


I want to be able to gobble or not the typing region by using a macro without modifying it.



As Wolfgang says, you can use start/stopbuffer:

\starttext
\startbuffer 
\starttyping
    { printf("%d", data); }
\stoptyping
\stopbuffer
This is ignored ! 
\stoptext

--
luigi