[OS X TeX] Syntax coloring of .dtx files

Vincent Verfaille vvvvlists at gmail.com
Mon Aug 31 15:02:41 EDT 2009

Dear all,

Currently updating the .dtx file of a package I wrote, I am spending  
most of my time commenting/uncommenting, because the edition process  
is easier with the so-nice syntax highlighting function of Teshop.
However, this process is long (uncomment, edit, re-comment,  run  
LaTeX, check; iterate) and a potential source of error (edited tex  
that is not commented back will appear in the class source code).

Would any of you know by chance an editor (or better: an extension to  
TeXshop) that allows to see a .dtx file with proper syntax  
highlighting (for instance with a slightly different background for  
the documentation code), or any other tricks to make the edition  
process lighter?


Vincent Verfaille

PS: reminder (from my own understanding): in a .dtx file, both the  
documentation and the generated file(s) appear in the same code...
The generated code appears "normally" (ie uncommented) between:
[latex commands]
Hello \foo{} world

In the documentation, the text is commented out (in which case the  
"comment" symbol for commented items in the documentation is for  
instance ^^A:

%^^A Section 1
%\section{First impressions}
% This is my wonderful documentation that, unfortunately,
% I am having trouble to quickly look at and edit because of
% the comment signs at the beginning..
% Any ideas/comments would be appreicated.
and latex stripped out by DocStrip when generating files such as  
the .ins, .cls, .

More information about the MacOSX-TeX mailing list