Micro: [Feature Request] Better markdown syntax highlighting

Created on 5 Apr 2018  路  4Comments  路  Source: zyedidia/micro

The markdown syntax highlighting for code blocks should highlight the code inside the code block as per the language it is written in.

Most helpful comment

I tried this already with a very long markdown.yaml file and it crashes Micro. I told zyedidia & he mentioned something about using the ~Discorse~ Literate plugin to do it, but I can't remember how. Search in Gitter for the conversation & you should find it.

All 4 comments

I tried this already with a very long markdown.yaml file and it crashes Micro. I told zyedidia & he mentioned something about using the ~Discorse~ Literate plugin to do it, but I can't remember how. Search in Gitter for the conversation & you should find it.

also interested in this feature

This could be done if include allowed a regex capturing group. Based on the vue

  - default: 
      start: "```go"
      end: "```"
      rules:
          - include: "go"

  - default: 
      start: "```lua"
      end: "```"
      rules:
          - include: "lua"

  - default: 
      start: "```(.+?)" # capturing group
      end: "```"
      rules:
          - include: "$1" # reference capturing group

related to #1540

I tried this already with a very long markdown.yaml file and it crashes Micro.

I came across a crash like this, and it was because i included markdown. The recursive inclusion gobbled up all my memory.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DoTheEvo picture DoTheEvo  路  3Comments

handicraftsman picture handicraftsman  路  4Comments

ns-cweber picture ns-cweber  路  4Comments

Mohamed3on picture Mohamed3on  路  3Comments

xintrea picture xintrea  路  3Comments