Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Editing text file in one window.. with clone in another..

Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
02-08-2009 07:20
Was about to ask if anyone knew a program to do this, but then discovered Notepad++ does it... and thought I'd pass it on.

If you open up your text file (eg offline LSL script) in Notepad++, you can open a second window that's a clone of it... i.e. any changes in one window affect the version in the other window. So you can make changes to a script while checking bits of the script further down.. so change functions and calls to that function without scrolling back and forth.

Sorry if everyone knows this, but I got all excited!
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
02-08-2009 07:59
It may not seem like much to most people but any little tricks that can improve our work flow and efficiency can have a huge impact and of course some of us are easily pleased anyways.

Glad it helps you, personally I make use of bookmarks to quickly tab between the different, relevant parts of code. If I am doing a major change on a script, then I have the original and a second versioned copy open at the same time to perform surgery on, just in case I screw up ;) .
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-08-2009 11:23
I often use vim (http://www.vim.org/) for this sort of thing, opening the file in read-only mode in one window and read-write mode in the other. The changes only propagate when you save (and then confirm that you want to re-load the file), but if you are working on one section and referring to another, that's not normally an issue.