References

  • None

Prerequisite

  1. None

Examples

Place an anchor

### <a name="head1234"></a>A Heading for the entry!

where you want to link to and refer to it on the same page by [link](#head1234)

Highlight ruby code with line numbers

1
2
3
4
5
6
7
8
9
10
11
12
# Program to find the factorial of a number
# Save this as fact.rb

def fact(n)
  if n == 0
    1
  else
    n * fact(n-1)
  end
end

puts fact(ARGV[0].to_i)