Hi Chapel Discourse Community —
This is a quick announcement that posts in Discourse now support fairly minimal / simplistic Chapel highlighting. For example:
module M {
coforall loc in Locales do
on loc do
writeln("Hello from loc ", here.id);
}
At present, triply-quoted blocks will default to Chapel, though this default can be overridden using bash
cpp
or other language tags.
There is almost certainly more we could do to make the highlighter fancier and more robust, and/or to improve the color scheme, but hopefully this is a good start at making Discourse a better place to talk about Chapel code. And if anyone would like to contribute to the effort of making things better, the highlight.js-based highlighter is hosted here:
Have a good weekend,
-Brad