MacDownApp / macdown

Open source Markdown editor for macOS.
https://macdown.uranusjr.com/
9.46k stars 1.09k forks source link

Adding another language for syntax highlighting in code blocks #877

Open mickeyl opened 7 years ago

mickeyl commented 7 years ago

How can I add support for another language (i.e. Vala) when writing code blocks?

FranklinYu commented 7 years ago

Syntax highlight for code block is done by PrismJS. You can define new language (and optionally add it to Prism).

C8-DO commented 6 years ago

As a follow-up question: What's with support for Xojo? It is already supported by Prism. Do I have to do something in addition, or just ask nicely ;-)

FranklinYu commented 6 years ago

@C8-DO Prism has been updated in 59963f878d8eb6b7ec5a73216057027da82f4a04, which would be in next release (but not yet a plan, because we need more users to test out the beta features). MacDown in master branch works good with Xojo code

Select Case me.ListIndex
case 0
canvas1.Backdrop = p1
case 1
canvas1.Backdrop = p2
case 2
canvas1.Backdrop = p3
end Select

(from here), so you can build yourself if you are really eager…

C8-DO commented 6 years ago

Thanks for the info, Franklin. The color scheme is different from Xojo's own, but I can easily live with that.

As for beta testers: I have little time right now, but if you'd point me to the version I should test (latest on the master branch?), and which features especially, I'll have a look.

Best regards, Chris

FranklinYu commented 6 years ago

@C8-DO I build the current master branch, and attach it as MacDown.zip. Not sure whether auto-update works though. There is no testing release with this update, yet.