vim-ledger icon indicating copy to clipboard operation
vim-ledger copied to clipboard

Support markdown syntax highlighting inside comment blocks

Open linuxcaffe opened this issue 10 years ago • 4 comments

This would ideally be optional, as not everyone uses markdown, and I'm pretty sure there are markdown elements that would conflict with the *ledger format, but would it be possible to also associate the *.ledger filtetype with markdown?

Where a subset of markdown elements, that match *ledger comments characters, it would be great for folding (like #19) and enhanced comments/ notes etc,

Headers

  • bullet
  • lists

and maybe much more, if it can fly under the *ledger-comment-character radar.

linuxcaffe avatar Nov 29 '15 20:11 linuxcaffe

Do you mean having Markdown syntax inside Ledger comments, or trying to pretend Ledger journals are parseable as Markdown?

alerque avatar Jun 11 '19 12:06 alerque

Does ledger support comment block syntax like hledger does? Implementing that with syntax embedded highlighting such as can be done with code blocks might be a possibility for this.

I've recently stepped in to help maintain this plugin. I'm open to seeing a contribution for this if somebody wants to implement it, bit will likely not be doing it myself as I don't have a need for it (yet).

alerque avatar Jul 01 '19 13:07 alerque

Given the link and explicit support as detailed in #54 I think the answer to my question is "yes".

alerque avatar Jul 01 '19 14:07 alerque

For anybody interested in contributing this, see similar problems faced for example here in nerdcommenter with embedded languages. This proposal is a lot simpler than any arbitrary language in any other, and there are ways of doing this. The plugins mentioned there than do this might be a place to start.

alerque avatar Oct 26 '19 07:10 alerque