I notice in the options menu that there is only a find command in the script editor, how about a find and replace function. This would be great for converting old code into the new object orientated language and it would make it much quicker.
I think it would be a nice addition, but there is a workaround:
Copy the "replace with" text.
Find the text to replace (the "find" text).
Press Ctrl+V.
Rinse and repeat.
Already on the tracker: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=486
What I do is cut/paste to MS Word, then do any fancy replacing (with wildcards if need be) then cut/paste back :)
Quote from: Radiant on Mon 13/03/2006 21:54:34
What I do is cut/paste to MS Word, then do any fancy replacing (with wildcards if need be) then cut/paste back :)
*** RickJ reads this, chokes on coca-cola, and spites coke bubbles all over monitor and keyboard :=
Aw man don't tell people to use a word processor to edit code, No, No please don't do it! :'(
Seriously though, it would be much better to use a plain text editor or a program editor to do this. I would never trust word to not insert funny, invisible characters.
I use the SciTE editor which is essentially the same editor CJ uses (or at least used to use) for the default script editor. It can be opened externally as Radiant does with MS word but can also be used as the alternative AGS Script editor. It has a small footprint (about 700k) so it loads fast.
You can get it here: http://www.scintilla.org/SciTE.html
The other one I can recommend is metapad. It is esentially a notepad replacement as it's name suggests. It handles transparently handles unix and dos line termination and also can convert between them. It's simpler and smaller than SciTE. I use this one to edit plain text documents.
You can get it here: http://www.liquidninja.com/metapad/
There many free choices out there so if these onse don;t suit your fancy just look around.
I'm definetly gonna have a look at this editor :P Thanks for your help RickJ
Actually what other editors work well with ags, just so I can have a wider range of choice.
Here's a nice text-only editor I've been using heavily for my IF projects.
It's called Programmer's Editor and is made by Alan Phillips. It doesn't have to be installed and its features (line indention, tabs or spaces, line numbers or not, aso.) can be fully customized for specific filetypes.
It's freeware, too.
http://www.2dadventure.com/ags/proged.zip
http://notepad-plus.sourceforge.net/uk/about.php