如何打破Lua中的代码行

Nim*_*jox 5 string syntax lua

愚蠢的问题,但我似乎无法找到答案.例如,如果我有这个Lua代码:

print("<html code blabla>
   <more html><and its long so I want to break it up like this>")
Run Code Online (Sandbox Code Playgroud)

我尝试过使用\/在第一行结束但它似乎不起作用.这是可以在Lua做的,如果是这样的话怎么样?

Ego*_*off 7

print("<html code blabla>\z
       <more html><and its long so I want to break it up like this>")
Run Code Online (Sandbox Code Playgroud)

  • 可能值得注意的是,这只是lua 5.2.对于5.1,您需要/想要使用长字符串. (4认同)
  • 很多人仍在使用 lua 5.1。 (2认同)