The explanation of a shell script "here document" is the following:
In a shell script, the operator << means to take the following lines, up to a
specified string, as input to a command. (This is often called a here document.)
Using this syntax, we could include our editing commands in correct like this:
for file in $*
do
ex - $file << end-of-script
g/thier/s//their/g
g/writeable/s//writable/g
wq
end-of-script
done
The string end-of-script is entirely arbitrary - it just needs to be a string
that won't otherwise appear in the input and can be used by the shell to
recognize when the here document is finished.
( Taken from http://www.unix.org.ua/orelly/unix/vi/ch07_04.htm )
I don“t know if it is possible with PSPad to differenciate the content of a
"here document" and highlight it according (in SQL, Perl or whatever). But
perhaps the content between the two labels (end-of-script in the example) could
be marked as "text" or something similar.
Hope you aren't bored enough of reading this post!
Thanks.
--
<http://forum.pspad.com/read.php?2,29090,29135>
PSPad freeware editor http://www.pspad.com