I can not reproduce this. Copying / pasting the code from this page into Aptana does not give me any errors. Make sure that a) you have the latest version of Aptana installed, and b) your code does not have any strange cop / paste artifacts. Try to insert the notepad first, and then from there into Aptana, delete the formatting information and see if this has changed.

source share