Hi,

thanks for the fast reply Mojca! Unfortunately it is still not working. Here 
is what I did. I'm afraid it has possibly more to do with pretty printers in 
particular (than lua scripts in general), but actually I have no idea.

I took the file
  MyConTeXtDir/tex/texmf-context/tex/context/base/pret-lua.lua
and copied it to
  MyConTeXtDir/tex/texmf-local/tex/context/user/pret-pas.lua
Next I replaced every occurance of "lua" in this new file by "pas" (so this 
changed the name of one function and renamed the visualizer itself). Then I 
ran "context --generate".

My testfile is added below. The "end" is typeset as if pret-pas.lua wouldn't 
exist. If I change "option=PAS" to "option=LUA" it works as intended ("end" is 
green). What is going on here? Any help is appreciated.

\installprettytype[PAS][PAS]
\setupcolors[state=start]
\setuptyping[option=color]
\definetyping[PAS][option=PAS, escape=yes, tab=4, numbering=line]

\starttext \startPAS
end
\stopPAS \stoptext

Thanks in advance,
Stefan.

PS: Additional question: Is it possible to integrate "option=color" into the 
"\definetyping[PAS]"? option={PAS,color}?
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to