
Formatting & Typesetting Source Code
I'm currently attempting to write a literate programming environment
for Perl, based on Knuth's WEB system for
Pascal. To do this, however,
I'd like some pointers as to what is considered `tidy' or `acceptable'
source code. Please bear in mind that typeset formatting will be
different to source formatting that may be done by your favourite
editor; would we want a fixed- or proportional- width font? If
proportional, then the indentation would be specified in terms of
measured length, not characters. Should we use, for example, a
left arrow to signify assignment, like Knuth does. Is there a sensible
way to format regular expressions? (Putting reserved words in bold
font is a headache for me at the moment, but we're getting there.)
I've put a few .dvi files created using the current system (which
is just about to undergo a second major rewrite from scratch) up at
http://www.*-*-*.com/ ~pemb0468/webperl/
I'd appreciate comments on how they look and how people think they
ought to look. I know this might become a religious subject, and
that's not what I want. Just some kind of consensus would be nice.
Then again, this is Usenet.
Simon
--
Imbalance of power corrupts and monopoly of power corrupts absolutely.
-- Genji