Open ben-albrecht opened 6 years ago
That sounds great, let's add it in! (I'll admit I didn't realize Chapel syntax highlighting was supported yet)
Invoking pygment directly should work, but it's not how syntax highlighting is handled in the rest of the Carpentries. The more consistent approach would be to modify syntax.css
to define a chapel
style, then append {: .language-chapel}
to the Chapel code blocks.
Here is the list of highlighting tools supported by Chapel today:
https://github.com/chapel-lang/chapel/tree/master/highlight
Maybe one of the formats could be easily ported to the format HPC Carpentry uses.
Additionally, there are a few highlighting formats that are managed outside of the repository, which are listed in this issue about improving maintenance of syntax highlighting tools for Chapel:
Chapel syntax highlighting should work in Jekyll using pygments, as described here.
We should be able to enable syntax highlighting with: