On Thu, Dec 16, 2010 at 10:07 AM, Andy Buckle <
address@hidden> wrote:
>> This is a bit unreleted to Octave. I want to copy my Octave code from
>> Notepad++ editor to MS Word 2003 on XP. I can't seem to be able to keep the
>> formatting at all however. I have tried paste special too; this gives me the
>> option to paste 'Unformatted Text' and 'Unformatted Unicode Text'.
>>
>> Are there anyways to copy from Notepad++ and keep the indents, colours and
>> fonts?
>
> No. That's simply not how this kind of syntax-highlighting text editor
> works. It is just text in notepad++.
>
> I have not tried this recently. There are a few options discussed
> here, for example
>
>
http://stackoverflow.com/questions/70169/how-to-highlight-source-code-in-html
>
> If you can convert it to pretty html, you should be able to then
> copy-paste it from a browser to word. It may be an extra challenge to
> find something that does Octave out-of-the-box.
>
> I feel sure there will be a way to do this. I am afraid it will be
> fiddlier than you first imagined. I would not be surprised if someone
> else on this list knows a good way.
>
> --
> /* andy buckle */
>
oooh. this page works