comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDLDoc Bandwagon
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDLDoc Bandwagon [message #72640 is a reply to message #72510] Tue, 21 September 2010 14:12 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 9/21/10 11:17 am, David Fanning wrote:
> Michael Galloy writes:
>
>> Yes, you can put file-level comments at the beginning of the file, i.e.,
>> comments between ;+ and ;- that are not immediately next to a routine
>> header are "file-level." I generally put documentation about each
>> routine in the header right next to that routine and file-level stuff
>> about the whole file like what the "public" routines in the file are in
>> the file-level comments.
>
> OK, I'm getting to something I can live with, but I want to
> move to the "rst" format. In this format, how can I put multiple
> line examples into the documentation? For example, something
> like this:
>
> IDL> a = findgen(11)
> IDL> MinMax, a
> MinMax: 0 10
>
> Also, would it be possible to put these kind of code fragments
> in some kind of "code" type font?

Yes, in "rst" markup this would be:


; The `MinMax` routine gives the range of a variable::
;
; IDL> a = findgen(11)
; IDL> MinMax, a
; MinMax: 0 10

You need a blank line between the '::' and the code start as well as an
indent for the code. You don't need text explanation if you don't want:

; ::
;
; IDL> a = findgen(11)
; IDL> MinMax, a
; MinMax: 0 10

Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: The variable shellCmd is not defined
Next Topic: Coyote and Catalyst Libraries Available on SVN Repository

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 11:15:32 PDT 2025

Total time taken to generate the page: 1.19638 seconds