Is there an off-the-shelf solution for highlighting the [markdown| ... |]
blocks in Elm code?
At the moment I'm using haskell-mode
to edit Elm files, and have two-mode-mode
hooked up to switch to markdown-mode
when I enter an appropriate block with
(require 'two-mode-mode)
(setq default-mode (list "Haskell" 'haskell-mode)
second-modes (list (list "Markdown" "\[markdown|" "|\]" 'markdown-mode)))
Ideally, there would be a solution that just highlighted everything at once in the same buffer, keeping the appropriate regions in markdown-mode
, but wasn't as complicated to set up as this seems to be.