rhysd / Shiba

Rich markdown live preview app with linter
772 stars 57 forks source link

Syntax Hightlighting #39

Closed jonaprieto closed 6 years ago

jonaprieto commented 6 years ago

I'm using code blocks but in the preview, they don't look like in Github (with colors). I'm working with code written in Agda.

Any reason?

rhysd commented 6 years ago

Please describe following:

jonaprieto commented 6 years ago

Using this after installing with homebrew-cask. image In Shiba: image It should look like: image

The source code was taken from: https://github.com/jonaprieto/agda-prop/blame/master/README.md#L17-L40

rhysd commented 6 years ago

Thank you for the info. Shiba utilizes highlight.js for highlighting codes. I guess Agda is not supported by it. It may be spported by upgrading highlight.js. I'll check it.

rhysd commented 6 years ago

I checked highlighters in highlight.js. It supports 176 languages, but Agda is not included in them.

In order to support Agda by Shiba, we need to add Agda syntax highlighter to highlight.js. So I can't fix this in Shiba side. Could you please make an issue or PR in highlight.js repo?