Guy Worthington
I'd like to get the two nested environments startbackground/startJV, grouped together under a single concept, in this case the single concept startNewCode.
what about this? \starttext \input tufte \setupcolors[state=start] \definetyping[NewCode][before=\startbackground, after=\stopbackground, option=JV] \startNewCode import java.io.IOException ; import org.xml.sax.SAXException ; \stopNewCode \input tufte \stoptext
I thought I'd just slurp up the argument nested between the keywords \startNewCode and \stopNewCode into memory and then process the argument. This is my attempt:
... too complicated for me :) If the above does not do what you need, say so. Perhaps I will look closer. But verbatim code look rather tricky to me, all those 1000 options for prettyprinting are confusing me. Patrick