This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Enma Ai's profile picture

going to a new line

Started by Enma Ai, 03 August 2012 - 05:59 PM
Enma Ai #1
Posted 03 August 2012 - 07:59 PM
When under the lua program in a computer how do I go to a new line not the /n command but I mean like a new line in Microsoft word because enter executes the code so what do I press.
PixelToast #2
Posted 03 August 2012 - 08:05 PM
you dont go to a new line, after a command you can just use a space to separate the commands
MysticT #3
Posted 03 August 2012 - 08:37 PM
Like abc said, you can't. Why would you need to do that anyway?
PixelToast #4
Posted 03 August 2012 - 09:47 PM
because enter executes the code.
that implies that they are trying to write commands over multiple lines
MysticT #5
Posted 03 August 2012 - 09:56 PM
because enter executes the code.
that implies that they are trying to write commands over multiple lines
Yes, I know, but why? Why would you need to write commands on multiple lines? There's no programs with a lot of/long arguments.
Cranium #6
Posted 03 August 2012 - 09:58 PM
I think the OP needs to clarify what they want. If they are trying to make their program in the lua prompt, then that is just not how it's done.
If you are trying to do that, then just use the edit program to create the program, and edit it onscreen…
PixelToast #7
Posted 03 August 2012 - 09:58 PM
Yes, I know, but why? Why would you need to write commands on multiple lines? There's no programs with a lot of/long arguments.
its their first post, i think they dont know the lua command structure verry well
Luanub #8
Posted 03 August 2012 - 10:14 PM
From the sounds of it they are in the lua prompt.

Instead of typing lua from the terminal and then doing your code type edit program_name. Enter your code, this will work a lot like a text editor. Hit ctrl, select save, then exit and type program_name from the normal promt to run the script.