POV-Ray : Newsgroups : povray.general : Tutorial collection : Re: Tutorial collection Server Time
8 Aug 2024 22:09:13 EDT (-0400)
  Re: Tutorial collection  
From: Peter J  Holzer
Date: 19 Nov 2000 18:01:54
Message: <slrn91ggc5.4b3.hjp-usenet@teal.h.hjp.at>
On Tue, 14 Nov 2000 16:52:26 +0100, Christoph Hormann wrote:
>
>
>"Greg M. Johnson" wrote:
>> 8)  Let's adopt a common standard for differentiation between
>> explanatory text and pov code.  What should this be?  <CODE>, <PRE><TT>,
>> switch from Arial to Courier??
>
>IMO '<PRE>' and maybe a standardized syntax highlighting scheme for POV
>code would be good. 

Yes, <pre> is meant for longer code sequences. <code> can only be used
inside a paragraph and should be used for short inline code snippets.

E.g.,

    <pre>
    texture {
	pigment {
	    image_map {
		png "turm-c.png"
		map_type 2
	    }
	    scale <1, 17.5, 1>
	}
    }
    </pre>

    <p>
	In the example above, <code>map_type 2</code> is used to indicate
	cylindrical mapping.
    </p>

For visual effects (font families and sizes, colors, ...) a common style
sheet should be used.

    	hp

-- 


| |   | hjp### [at] wsracat      |    -- Lutz Donnerhacke in dasr.
__/   | http://www.hjp.at/ |


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.