Jump to Content
Another nameSecond ProjectThird Project
GuidesRecipesDiscussionscustom page link
Second ProjectThird ProjectLog InAnother name
Guides
Log In
Code Sample Stylingcustom page link

Documentation

  • Getting Started
    • Tablist
    • Subpage
    • No Anchor
  • Repeating Content
  • Suggested Edits Test
  • Test
  • Page crash test
  • test
  • Indentation within code block

HTML/CSS

  • Download Button
  • Heading Format
  • Testing Broken HTML block
  • Clickable Image
  • List Indentation
  • Callout in table alternative
  • Input and button tags not displaying
  • Table Styling

Markdown

  • Callout Stuff
  • Code Sample Styling
  • Trailing hashtags
  • Prevent Link in Markdown

Testing

  • Markdown Editor Formatting
  • Table CSS
  • Redirect Test
  • Safari Mobile Load Issue ?
  • Test Page Crash
  • TOC Scroll Issue
  • Glossary Testing
  • Default Variable
  • Blank Parent
    • Child Page
  • Page History Diff
  • Link Disappears
  • Localize testing
  • Embed It
  • Image Test
  • Table columns
  • Save Edits with staging enabled
Powered by 

Code Sample Styling

Suggest Edits
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))

Adding more context.

Updated about 3 years ago