ledger / vim-ledger

Vim plugin for Ledger
GNU General Public License v2.0
372 stars 55 forks source link

Support markdown syntax highlighting inside comment blocks #30

Open linuxcaffe opened 8 years ago

linuxcaffe commented 8 years ago

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

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

alerque commented 5 years ago

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

alerque commented 5 years ago

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 commented 5 years ago

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

alerque commented 4 years ago

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.