-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only highlight raku snippets as raku #199
Comments
I wonder, why can't we highlight ruby blocks as ruby code? |
Regarding highlighting other blocks in their appropriate languages: ... Sure. It's more work, and if someone wants to do it, more power to them. |
relevant code snip BTW, how can we get |
FWIW, here's the snippet in the examples test that checks whether something is p6 or not: https://github.com/perl6/doc/blob/master/xt/examples-compilation.t#L50 |
Is this a general recommendation or are there specific snippets where it's happening? |
@JJ yes, all “X to Perl 6” pages are affected. See this as an example: https://docs.perl6.org/language/haskell-to-p6#Ranges (Haskell comments not highlighted as comments). |
Code blocks now can have an explicit :lang<> set; if this lang is not Raku, then we should not run the Raku syntax highlighter on those snippets of code. (See, for example, https://docs.perl6.org/language/rb-nutshell, which has many sections that are marked as :lang, and therefore should not get Raku highlighting)
The text was updated successfully, but these errors were encountered: