Closed di closed 7 years ago
Sorry -- not sure I follow the question -- is this a question about syntax highlighting in the editor or about rendering the page?
@bduggan Syntax highlighting in the editor. The filename changes whether fenced code blocks are highlighted or not.
hmm, when I try, I don't see syntax highlighting in code fences even inside a .markdown
Have you pulled recently? I added it in #24.
Got it, now I can reproduce it (oops, was pulling the rcfiles instead...)
To be clear, this has nothing to do with the rendering of code blocks in the built HTML?
When I explicitly type :set syntax=markdown.eruby
it seems to work. The output of :set syntax
beforehand is just eruby, so seems related to properly handling the file extension..
@andrewcroce Nope, this is a vim-specific thing.
@bduggan Interesting, I didn't know about markdown.eruby
, I wonder why the filetype detector didn't pick up on that.
The ERB and Markdown syntax highlights fine, but not anything embedded. E.g.:
If you change a file to
.markdown
, code blocks work, but ERB does not (as might be expected):I tried to fix this a couple ways but couldn't. @bduggan @nicholaides any ideas?