POV-Ray : Newsgroups : povray.general : pov2 html on-line Server Time
6 Aug 2024 21:38:04 EDT (-0400)
  pov2 html on-line (Message 31 to 36 of 36)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Christopher James Huff
Subject: Re: pov2 html on-line
Date: 20 Mar 2002 10:49:40
Message: <chrishuff-79A907.10494920032002@netplex.aussie.org>
In article <3c988556@news.povray.org>, "Gleb" <gk1### [at] sotonacuk> wrote:

> What do you mean "the right way"? It seems that POV doesn't support nested
> multiline comments.

Actually, it does. With this:

/*
Part 1
/*
Part 2
*/
Part 3
*/

The whole thing, from Part 1 to Part 3 is a comment. It is a little more 
difficult to handle than the C/C++ way, which cheats by not allowing 
nested comments, but it is much more convenient when commenting out big 
blocks of code that are documented with comments. The syntax coloring in 
the editor might mess it up though.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

From: ingo
Subject: Re: pov2 html on-line
Date: 20 Mar 2002 10:50:29
Message: <Xns91D7ABAE9D960seed7@povray.org>
in news:3c988556@news.povray.org Gleb wrote:

>> It does not deal with nested multiline comments in the right way.
> What do you mean "the right way"? It seems that POV doesn't support
> nested multiline comments.

Ah, I assumed that because the POV-Ray parser deals with nested multi-
line comments the code coloring would do also. Wrong assumption. Yet I 
think it is more elegant when colorizer deals with it.
 
>> It has sometimes problems with the {}
> Example, please, if possible.

Try the piece of code below. It produces black {} inside the macro. It 
produces black }{ after T_Wood7 and T_Wood14.

---%<------%<---
#macro Ring (Rin,Rout,Height) 
   difference { 
      cylinder {<0,(-Height/2),0>,<0,Height/2,0>, Rout} 
      cylinder {<0,(-Height/1.99),0>,<0,Height/1.99,0>, Rin} 
   } 
#end //macro  

      texture {T_Wood7}   
      normal {     
         wood 0.03 
         scale <0.075, 0.075, 1> 
         turbulence 0.065 
         omega 0.45 
         lambda 2.3 
         rotate x*4  
      } 

   merge { 
      difference { 
         object { 
            Ring(0.561,0.59,0.3)  
            rotate <0,0,90> 
         } 
         box{<-1.2,-1,-1>,<1.2,0,1>} 
         box{<-1.2,-1,-1>,<1.2,1,0>} 
      } 
      box{<-0.15,0.56,-0.8>,<0.15,0.59,0>} 
      translate <0.95,0,0> 
      texture {T_Wood14} 
   } 
    
   merge { 
      difference { 
         object { 
            Ring(0.561,0.59,0.3)  
            rotate <0,0,90> 
         } 
         box{<-1.2,-1,-1>,<1.2,0,1>} 
         box{<-1.2,-1,-1>,<1.2,1,0>} 
      } 
      box{<-0.15,0.56,-0.8>,<0.15,0.59,0>} 
      translate <-0.95,0,0> 
      texture {T_Wood14} 
   } 
---%<------%<---

Ingo


Post a reply to this message

From: Gleb
Subject: Re: pov2 html on-line
Date: 20 Mar 2002 11:53:53
Message: <3c98bea1$1@news.povray.org>
"ingo" <ing### [at] homenl> wrote in message
news:Xns### [at] povrayorg...
> in news:3c988556@news.povray.org Gleb wrote:
>
> Try the piece of code below. It produces black {} inside the macro. It
--- cut ---
Definitely a bug, thank you so much indeed.

Gleb


Post a reply to this message

From: Gleb
Subject: Re: pov2 html on-line
Date: 20 Mar 2002 12:02:44
Message: <3c98c0b4$1@news.povray.org>
"Christopher James Huff" <chr### [at] maccom <mailto:chr### [at] maccom>
<<mailto:chr### [at] maccom>>> wrote in message
<<news:chr### [at] netplexaussieorg>>...
> It seems that POV doesn't support nested multiline comments.
> Actually, it does. With this:
> /*
> Part 1
> /*
> Part 2
> */
> Part 3
> */
> The whole thing, from Part 1 to Part 3 is a comment.
>The syntax coloring in the editor might mess it up though.

That was a point! Thank you, I can see now. I've only tried to simulate the
editor scheme.
This is much better, and definitely more convenient. But in this case it
should be considered as a tiny bug
in POV editor?

Cheers!
Gleb


Post a reply to this message

From: Christopher James Huff
Subject: Re: pov2 html on-line
Date: 20 Mar 2002 14:17:00
Message: <chrishuff-A42768.14170320032002@netplex.aussie.org>
In article <3c98c0b4$1@news.povray.org>, "Gleb" <gk1### [at] sotonacuk> 
wrote:

> This is much better, and definitely more convenient. But in this case it
> should be considered as a tiny bug in POV editor?

As far as I recall, the Windows editor uses a version of CodeMax that 
was donated. CodeMax was designed for C/C++ code, so it uses that for 
coloring, and if I remember correctly the POV-Team can't legally modify 
it.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

From: ingo
Subject: Re: pov2 html on-line
Date: 20 Mar 2002 15:24:06
Message: <Xns91D7DA1558B4seed7@povray.org>
in news:chr### [at] netplexaussieorg Christopher 
James Huff wrote:

> CodeMax was designed for C/C++ code, so it uses that for 
> coloring, and if I remember correctly the POV-Team can't legally modify 
> it.
> 

It has gone open source a few years ago, but now it's 'dead'.

http://groups.yahoo.com/group/codemax/

Ingo


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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