purescript-cookbook icon indicating copy to clipboard operation
purescript-cookbook copied to clipboard

example of syntax highlighted code in Halogen using PrismJS

Open afcondon opened this issue 4 years ago • 6 comments

Syntax highlighted code in a Halogen App

HalogenSyntaxHighlightedCode

Each recipe name must be unique. Use PascalCase.

Recipe Description

No idea if this would be worthwhile but i'm open to generating the recipe if you'd like it. Here's how i solved it, recipe would presumably be more or less just that:

https://discourse.purescript.org/t/syntax-highlighting-of-purescript-code-in-halogen-app-with-prismjs/2476/3?u=afc

afcondon avatar Jul 19 '21 13:07 afcondon

Yeah, this is worth it. Mind adding it?

JordanMartinez avatar Jul 19 '21 13:07 JordanMartinez

I'd be happy to.

afcondon avatar Jul 19 '21 14:07 afcondon

Ah, just realized that https://github.com/rnons/purescript-html-parser-halogen/releases/tag/v1.0.0-rc.2 which actually makes this possible is not in the package set...i could try to add it to the package-set but the -rc.2 seems like it should get bumped...i'll mail the author...

afcondon avatar Jul 20 '21 15:07 afcondon

Ah... yeah...

JordanMartinez avatar Jul 20 '21 20:07 JordanMartinez

Ping kindly responded that he'd try to publish the parser package to the package set this weekend if he had time. ❤️ I'll pick it up again when he has done that.

afcondon avatar Jul 21 '21 13:07 afcondon

Sounds good!

JordanMartinez avatar Jul 21 '21 13:07 JordanMartinez