POV-Ray : Newsgroups : povray.general : OT: Advanced search and replace? : Re: Advanced search and replace? Server Time
8 Aug 2024 12:26:01 EDT (-0400)
  Re: Advanced search and replace?  
From: Chris Colefax
Date: 3 Jan 2001 17:44:01
Message: <3a53ab31@news.povray.org>
Rune <run### [at] inamecom> wrote:
> This post is a bit off-topic, but I hope it's ok.
>
> I want to redesign my website and it most of the work can basically be
done
> by replacing chunks of HTML with other chunks of HTML.
>
> Some text editors support multiple-file search and replace. This function
> could almost, but not quite, do what I need. One of the problems is that
the
> chunks of code I need to search and replace are dozens of lines long,
which
> is usually not supported by text-editors.
>
> I heard some time ago a discussion on this news-server about scripts which
> could do those things that I need. IIRC for Windows vb-script was
mentioned.
> But I don't know anything about vb-script. How (and where) can I learn to
> use vb-script or similar for the things I need? I need some very basic
> tutorials or something...
>
> BTW, the website I am to redesign is mostly about POV-Ray; I hope that
> slightly justifies the OT post... :)

You can download VB script documentation from Microsoft, and if you have
installed Microsoft Office 2000 you should get the Microsoft Script Editor
installed in something like:

   C:\Program Files\Microsoft Visual Studio\Common\Ide\Ide98

which includes references for VBScript, JScript, DHTML, ASP, etc.  More
importantly, you can indeed use a small VBScript from the command line to
perform search-and-replaces on multiple files.  If you like, I can email you
the script I use myself for this...


Post a reply to this message

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