1: Right click the turtle.
2: type "edit startup" (without the ")
3: type as you see below, with the second line 2 spaces forward, and the first and third line without spaces.
while true do
turtle.attack()
end
4: Hit enter
5: Select Save
6: Hit enter
7: Hit menu
8: type "startup"...