Better display format for inspect in EEX?


I am wondering what options there are for formatting i.e. more readable display when using inspect in EEX


<%= inspect @current_user %>

  • Are there any options I can pass to inspect?
  • Does anyone have any CSS or browser side display tricks or tips?
1 Like

If you h inspect in iex you’ll see that it takes options. The options themselves are documented in h Inspect.Opts. Or linked here.


thanks, not seeing much difference tbh, will dig

<%= inspect @current_user, pretty: true %>