asciidoctor / asciidoctor-reveal.js

:crystal_ball: A reveal.js converter for Asciidoctor and Asciidoctor.js. Write your slides in AsciiDoc!
http://asciidoctor.org
Other
287 stars 189 forks source link

Source code block highlighting for Haskell #504

Closed refaelsh closed 1 year ago

refaelsh commented 1 year ago

Here is an example to reproduce the problem:

snip
:source-highlighter: highlightjs
snip

[source, haskell, linenums]
----
reverselist [a] -> [a]
reverseList list = ...

doubleList [a] -> [a]
doubleList list = ...

reversedAndDoubled [a] -> [a]
reversedAndDoubled list = reverselist (doublelist list)

-- Or using function composition:
reversedAndDoubled [a] -> [a]
reversedAndDoubled = reverselist . doublelist
----

I don't see that the code block has highlighting. It works for C++ for example.

ggrossetie commented 1 year ago

Did you set the highlightjs-languages attribute?

:highlightjs-languages: haskell

https://docs.asciidoctor.org/asciidoctor/latest/syntax-highlighting/highlightjs/#load-support-for-additional-languages

In the future, please ask questions in the community chat: https://chat.asciidoctor.org

refaelsh commented 1 year ago

I understand. Thank you very much.

In the future, please ask questions in the community chat: https://chat.asciidoctor.org/

Duly noted.