POV-Ray : Newsgroups : povray.general : Associating files with PovRay Server Time
10 Aug 2024 21:06:57 EDT (-0400)
  Associating files with PovRay (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Nieminen Juha
Subject: Re: Associating files with PovRay
Date: 3 Dec 1999 08:12:53
Message: <3847c1d5@news.povray.org>
Bill DeWitt <the### [at] earthlinknet> wrote:
:     Then search all .pov, .inc and .mac files for ".mac" and replace it with
: ".mcr" I've got a multiple search and replace utility, but it only does open
: files and I have so many directories.... wah!

  If he was using unix (and zsh) he could write something like:

for FILE (`find . -name '*.pov'`) { perl -pe 's/(#include ".*)\.mac"/\1.mcr"/g' $FILE
> $FILE.tmp; mv $FILE.tmp $FILE }

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Bill DeWitt
Subject: Re: Associating files with PovRay
Date: 4 Dec 1999 00:07:40
Message: <3848a19c@news.povray.org>
"Ken" <tyl### [at] pacbellnet> wrote :
>
> If you open
> a .mcr file now you get none highlighted code on your screen becuase
> it isn't automaticaly recognized by the editor as .pov or .inc code.
>

    Also (I just noticed and it made me mad) I am so tired of typing in
MyMacro.mcr and having pov change it to MyMacro.mcr.pov

    ...OK..."MyMacro.mcr" works but after thirty or fourty times of
forgetting to do that and having to re-save it and then delete the other
file it starts to wear. Choosing "all files" works but that is a second best
solution also...


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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