Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P3177
lua syntax highlight
Active
Public
Actions
Authored by
Dzahn
on May 25 2016, 6:27 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F4054060: lua syntax highlight
May 25 2016, 6:27 PM
2016-05-25 18:27:21 (UTC+0)
Subscribers
None
print
(
"Hello World"
)
-- defines a factorial function
function
fact
(
n
)
if
n
==
0
then
return
1
else
return
n
*
fact
(
n
-
1
)
end
end
print
(
"enter a number:"
)
a
=
io.read
(
"*number"
)
-- read a number
print
(
fact
(
a
))
Event Timeline
Dzahn
created this paste.
May 25 2016, 6:27 PM
2016-05-25 18:27:21 (UTC+0)
Dzahn
mentioned this in
T100900: Pastes don't allow lua syntax highlighting
.
Log In to Comment