raku-most-wanted icon indicating copy to clipboard operation
raku-most-wanted copied to clipboard

Need Raku in popular syntax highlighters

Open rypervenche opened this issue 4 years ago • 2 comments

I think that in order for us to be relevant and taken seriously, we need to be available to users and learners. When sharing code anywhere that involves syntax highlighting, we need to be there as a real language. I've run into highlight.js (Discord) and rouge (Gitlab) a lot and could see those helping us get to a level where more people see Raku as a serious language.

highlight.js: The Grammar Requests page has a link to an issue for Raku, however they need someone with knowledge of the syntax to submit a PR.

rouge: There is an outstanding PR by zakame found here. I forked the PR here and made a commit to rename everything from Perl 6 to Raku, however I feel that the PR still needs work. It is reliant on the Perl syntax file and contains some Perlisms that don't exist in Raku. It also lacks newer features to the language. I don't have the necessary skill to make the changes necessary, so all help would be appreciated.

There is also a PR for Pod6 found here, that could use some momentum.

rypervenche avatar Aug 20 '20 14:08 rypervenche

About hightlight.js: note it is possible some code can be adapted from https://github.com/perl6/atom-language-perl6/tree/master/grammars

Altai-man avatar Aug 20 '20 15:08 Altai-man

I may look into codemirror at some point, for syntax highlighting on exercism.org. (Issue raised in https://github.com/exercism/raku/issues/520).

m-dango avatar Jun 25 '22 16:06 m-dango