binyomen / pwsh-live-doc

Run real code examples to generate empirical documentation of the complex nonsense that is PowerShell semantics.
https://www.pwsh-live-doc.com/
MIT License
5 stars 0 forks source link

Perform syntax highlighting at compile time #18

Open binyomen opened 4 years ago

binyomen commented 4 years ago

You can use highlightjs from npm to output highlighted code. That way the site doesn't need to load unnecessary javascript when the user browses to it.

This will require adding npm to this project.

binyomen commented 4 years ago

Actually it would probably be best to do this with Parser.ParseInput. That way we keep everything in PowerShell and don't need external dependencies.