Share Elixir code with CodeThis

Elixir for fault-tolerant, concurrent systems. Share Phoenix LiveView, GenServers, and pattern-matched functions.

Paste Elixir now

What you get

  • Elixir-aware syntax highlighting via CodeMirror
  • Instant shareable link — no signup required
  • Optional expiration (7 days, 30 days, permanent)
  • Password protection for private pastes
  • Works with the REST API and MCP server
  • Rich markdown and MDC components alongside code

Common use cases for Elixir pastes

  • Phoenix controller examples
  • GenServer patterns
  • LiveView components
  • Ecto queries

Example

defmodule Fib do
  def run(n), do: run(n, 0, 1)
  defp run(0, a, _), do: a
  defp run(n, a, b), do: run(n - 1, b, a + b)
end

Related languages

Ready to share some Elixir?