19 Apr
2012
19 Apr
'12
7:11 p.m.
On Thu, 19 Apr 2012, Xenia wrote:
Dear context-folks,
I have to write some short protocols including some matlab-code. Do you have a recommendation for an easy way to include '.m'-files and diaries as code?
I'd recommend to use the vim module, which uses vim to generate syntax highlighted source code. \usemodule[vim] \definevimtyping[MATLAB][syntax=matlab] \starttext \includeMATLABfile{filename.m} and \startMATLAB .... \stopMATLAB \stoptext You need both the filter module and the vim module for this to work, and also need the vim binary in your path. Aditya