 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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... :)
Thanks in advance,
Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated December 17)
/ Also visit http://www.povrayusers.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Rune <run### [at] iname com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Rune wrote:
>
> 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.
>
Try NoteTab (http://www.notetab.com)
The "Light" version is freeware, I used it quite a lot when creating my pages.
It can do fairly powerful regular expression searches, and I had no problems
replacing large chunks of code with it (generally around 5-6 lines).
Unfortunately searching in multiple files works for a limited trial period only
(IIRC 30 days), after that you'd have to get the $9.95 "Standard" version.
--
Margus Ramst
Personal e-mail: mar### [at] peak edu ee
TAG (Team Assistance Group) e-mail: mar### [at] tag povray org
Home page http://www.hot.ee/margusrt
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Rune wrote:
> 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.
Perhaps Arachnophilia supports this (no personal experience).
http://www.arachnoid.com/arachnophilia/index.html
G.
--
**********************
http://www.oyonale.com
**********************
Graphic experiments
Pov-ray gallery
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Rune" <run### [at] iname com> wrote in message
news:3a538752@news.povray.org...
<SNIP>
Dunno about vb-script - why not give PERL a try? Okay, a bit of a learning
curve (although I'm sure you would find help very forthcoming), but at the
end you've learnt a nice, multi-purpose, portable lang.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Tom Melly" wrote:
> Dunno about vb-script - why not give PERL a try? Okay, a bit
> of a learning curve (although I'm sure you would find help
> very forthcoming), but at the end you've learnt a nice,
> multi-purpose, portable lang.
I think I once decided with myself that if I were ever to learn a real
programming language I'd start with Pascal or Delphi or what it's called...
Why do you think PERL would be the best choice?
Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated December 17)
/ Also visit http://www.povrayusers.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Chris Colefax" wrote:
>
> You can download VB script documentation from Microsoft
Do you have a direct link? :)
> if you have installed Microsoft Office 2000
I don't.
> 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...
Thanks, please do! :)
Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated December 17)
/ Also visit http://www.povrayusers.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Margus Ramst" wrote:
> Try NoteTab (http://www.notetab.com)
Thanks, I'll check it out.
Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated December 17)
/ Also visit http://www.povrayusers.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Gilles Tran" wrote:
> Perhaps Arachnophilia supports this (no personal experience).
> http://www.arachnoid.com/arachnophilia/index.html
Thanks, I'll have a look.
Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated December 17)
/ Also visit http://www.povrayusers.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Thu, 4 Jan 2001 15:20:10 +0100, Rune wrote:
>"Tom Melly" wrote:
>> Dunno about vb-script - why not give PERL a try? Okay, a bit
>> of a learning curve (although I'm sure you would find help
>> very forthcoming), but at the end you've learnt a nice,
>> multi-purpose, portable lang.
>
>I think I once decided with myself that if I were ever to learn a real
>programming language I'd start with Pascal or Delphi or what it's called...
>
>Why do you think PERL would be the best choice?
Despite the fact that it's an acronym, it's actually spelt either Perl or
perl.
It's a good choice because it is designed precisely for extracting and
formatting text and has many powerful features aimed at just that purpose.
In fact, the name itself stands for "practical extraction and reporting
language" (not "pathologically eclectic rubbish lister" as some would
claim.)
For the same reasons, Delphi would be a poor choice. Pascal is a notoriously
weak language for doing real work, and it has abysmal support for string
manipulation. Even C is better, and C's string support sucks too.
Somewhere around here I even have the global search-and-replace script
that you need, believe it or not.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |