JordanMartinez / purescript-cookbook

An unofficial Cookbook for PureScript
MIT License
199 stars 30 forks source link

example of syntax highlighted code in Halogen using PrismJS #285

Open afcondon opened 3 years ago

afcondon commented 3 years ago

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

JordanMartinez commented 3 years ago

Yeah, this is worth it. Mind adding it?

afcondon commented 3 years ago

I'd be happy to.

afcondon commented 3 years ago

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...

JordanMartinez commented 3 years ago

Ah... yeah...

afcondon commented 3 years ago

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.

JordanMartinez commented 3 years ago

Sounds good!