Page 1 of 1

Support for non standard extensions

Posted: Fri Feb 08, 2008 12:23 pm
by davensjournal
Okay, I did a search and I didn't see this anywhere, so I'm hoping I'm not repeating something that has been discussed.

I use WildEdit to do batch "find and replaces" in my website of more than 600 pages. The problem that is prompting this post is that out of those pages, only about 5 are in HTM or HTML format, the rest are in SHTML or XHTML for various reasons. I can change the extension on the search bar, but when doing a lot of work, that gets to be a pain after a while, changing that over and over.

I couldn't find in the options anywhere a place where I could add XHTML or SHTML to the search parameters permanently or to set it as default. I would really appreciate it if a patch or a set of definitions could be added to the base program or for a download so this can be done easily.

Thank you very much.

Posted: Fri Feb 08, 2008 12:59 pm
by ben_josephs
I can't find a way permanently to change the entries in the In files matching box through the GUI, either.

But you can edit the configuration file by hand. It's
C:\Documents and Settings\<user>\Application Data\Helios\WildEdit\config.xml
or similar.

In the <value name="wildcards"> element of the <Replace> element add an <element> element:
<element>*.htm *.html *.shtml *.xhtml</element>

Perhaps you should also change the <value name="lastwildcard"> element to
<value name="lastwildcard" type="string">*.htm *.html *.shtml *.xhtml</value>

This is not user friendly, It may also be not safe; keep a back-up copy of the original config.xml.

Posted: Fri Feb 08, 2008 1:06 pm
by davensjournal
Well, that did work. I'm a bit nervous, and those who are using it and who don't program in xml would probably not be able to do that easily.