+% Type the given buffer with the vhdl typing style.
+% e.g., \typebuffervhdl{buffname}
+\define[1]\typebuffervhdl{
+ % We can't use \startvhdl here defined by definetyping[vhdl] above when
+ % typing buffers, so instead we'll redefine the options here.
+ \setuptyping[style=mono,strip=auto,numbering=line]
+ \startboxed
+ \typebuffer[#1]
+ \stopboxed
+ % Reset the typing options
+ \setuptyping[option=none,style=\tttf,strip=auto]
+}
+