Am 27.04.2014 um 13:28 schrieb Fabrice Couvreur <fabrice1.couvreur@gmail.com>:

Hello,
How to make the numbering is in the frame and red ?

\defineenumeration
  [ac]
  [text={
         \inframed[frame=off,
         width=fit,
         align={right},
         background=color,
         backgroundcolor=lightgray]{Activité}},
         headstyle={\bf\feature[+][f:smallcaps]},
         width=fit,
         stopper={.},
         alternative=left,
   ]
\starttext
\startac
Tirage dans une urne
\stopac
\stoptext

\defineframed
  [ACFRAME]
  [frame=off,
   width=fit,
   align=flushleft,
   location=low,
   background=color,
   backgroundcolor=lightgray]

\defineenumeration
  [ac]
  [text={Activité},
   headstyle={\bf\feature[+][f:smallcaps]},
   headcommand=\ACFRAME,
   numberconversionset=ACCONVERSION,
   width=fit,
   stopper={.},
   alternative=left]

\defineprocessor[ACPROCESSOR][color=red]

\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]

\setupbodyfont[pagella]

\starttext
\startac
Tirage dans une urne
\stopac
\stoptext


When you want the period after the number in red too remove the stopper setting from \defineenumeration and change the processor definition to

    \defineprocessor[ACPROCESSOR][color=red,command=\groupedcommand{}{.}]

Wolfgang