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

[Feature Request] Better markdown syntax highlighting #1083

Open
omern1 opened this issue Apr 5, 2018 · 4 comments
Open

[Feature Request] Better markdown syntax highlighting #1083

omern1 opened this issue Apr 5, 2018 · 4 comments

Comments

@omern1
Copy link
Contributor

omern1 commented Apr 5, 2018

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

@sum01
Copy link
Contributor

sum01 commented Apr 5, 2018

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.

@stealthybox
Copy link

also interested in this feature

@obedm503
Copy link

obedm503 commented May 25, 2020

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

@pbsds
Copy link
Contributor

pbsds commented Aug 28, 2020

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.

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

No branches or pull requests

5 participants