POV-Ray : Newsgroups : povray.beta-test : syntax highlighting for numbers with "e" in it Server Time
5 Nov 2024 03:18:24 EST (-0500)
  syntax highlighting for numbers with "e" in it (Message 1 to 2 of 2)  
From: Elias Pschernig
Subject: syntax highlighting for numbers with "e" in it
Date: 10 Sep 2001 21:25:35
Message: <3b9d680f@news.povray.org>
This is really something very minor, but just in case it easy to fix, numbers
like "1e-6" are wrong in the syntax-highlighting (as they were in previous
versions), which can look quite ugly sometimes - e.g. the number left from the
"e" being dislpayed in black, the "-" in red, and only the exponent correctly.

-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

From: Francois Labreque
Subject: Re: syntax highlighting for numbers with "e" in it
Date: 11 Sep 2001 01:16:43
Message: <3B9D9DE5.3DBB910D@videotron.ca>
Elias Pschernig wrote:
> 
> This is really something very minor, but just in case it easy to fix, numbers
> like "1e-6" are wrong in the syntax-highlighting (as they were in previous
> versions), which can look quite ugly sometimes - e.g. the number left from the
> "e" being dislpayed in black, the "-" in red, and only the exponent correctly.
> 

Similarly, the period in decimal numbers is only green if there's a
leading 0.  e.g. in "0.8", the period is green, while in ".8", it's
black.

Win98SE, 128MB, Athlon 650MHz.
-- 
Francois Labreque | Unfortunately, there's no such thing as a snooze
    flabreque     | button on a cat who wants breakfast.
        @         |      - Unattributed quote from rec.humor.funny
   videotron.ca


Post a reply to this message

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