elixir-editors / emacs-elixir

Emacs major mode for Elixir
448 stars 94 forks source link

Support markdown highlighting #476

Open achempion opened 3 years ago

achempion commented 3 years ago

Documentation blocks like @doc or @moduledoc expected to contain markdown templates.

I'm wondering, is it possible to integrate elixir-mode with mmm-mode to enable markdown editing for these blocks and describe setup in documentation (or make it enabled by default).

It would allow syntax highlighting, table editing and many more markdown features nicely integrated into working with .ex files.

jsmestad commented 3 years ago

@achempion you could use a similar technique that I used for inline LiveView templates.

https://blog.evalcode.com/phoenix-liveview-inline-syntax-highlighting-for-emacs/

victorolinasc commented 1 year ago

I think this is a candidate for a section "Tips and tricks" in the README. @jsmestad wdyt?

Other than that, I think it is not something this mode should support. Would you all agree?

victorolinasc commented 1 year ago

Added the liveview trick in #505 @jsmestad awesome :)

@achempion would you like to add a snippet for docs?