Skip to content

Instantly share code, notes, and snippets.

@boddhisattva
Last active September 29, 2018 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save boddhisattva/5277b6c355c885d50e09 to your computer and use it in GitHub Desktop.
Save boddhisattva/5277b6c355c885d50e09 to your computer and use it in GitHub Desktop.
How to highlight elixir code in your markdown files - an example

Elixir syntax highlighting example

 list = [1, 2, 3]
 [a, b, c] =  list
 
 def foo do
   IO.puts "foo"
 end

Ruby syntax highlighting example

[1, 3, 6].select { |element| element%2 == 0 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment