Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Literate Programming

Reply
Thread Tools

Literate Programming

 
 
Tim Arnold
Guest
Posts: n/a
 
      04-11-2011
"Hans Georg Schaathun" <> wrote in message
news:aca678-...
> On Fri, 8 Apr 2011 12:58:34 -0400, Tim Arnold
> <> wrote:
> : If you already know LaTeX, you might experiment with the *.dtx docstrip
> : capability.
>
> Hi. Hmmm. That's a new thought. I never thought of using docstrip
> with anything but LaTeX. It sounds like a rather primitive tool for
> handling python code, and I would expect some serious trouble getting
> sensible highlighting in vim/eclim (or most other editors for that
> matter). But I'll give it a thought. Thanks.
>
> : It has some pain points if you're developing from scratch, but I use it
> once
> : I've got a system in reasonable shape.
>
> Hmmm. I wonder if I am every going to reach that stage
>
> : You have full control over the
> : display and you can make the code files go anywhere you like when you
> run
> : pdflatex on your file.
>
> If you use docstrip with python, what packages do you use to highlight
> code and markup programming concepts (methods/classes/variables)?
> If I may ask ...
>
> --
> :-- Hans Georg


I don't use anything special, just the verbatim environment is fine for my
purposes. But you might like the listings package which iirc has syntax
highlighting built-in for python. ah, yes:
http://en.wikibooks.org/wiki/LaTeX/Packages/Listings

There's also the 'fancyvrb' package:
http://www.ctan.org/tex-archive/macr...ntrib/fancyvrb

good luck,
--Tim


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Literate programs in Python Paul Miller Python 6 05-14-2008 06:04 AM
How to literate a const char* silverburgh.meryl@gmail.com C Programming 2 07-15-2007 12:29 AM
[QUIZ] Literate Ruby (#102) Ruby Quiz Ruby 10 11-22-2006 05:36 PM
XMLMind and Literate Programming Mike Maxwell XML 2 11-03-2004 02:13 PM
Literate testing? Massimiliano Mirra - bard Ruby 6 08-30-2004 09:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57