Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support markdown highlighting #476

Open
achempion opened this issue May 9, 2021 · 3 comments
Open

Support markdown highlighting #476

achempion opened this issue May 9, 2021 · 3 comments

Comments

@achempion
Copy link

achempion commented May 9, 2021

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
Copy link
Contributor

jsmestad commented May 9, 2021

@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
Copy link
Contributor

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
Copy link
Contributor

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants