Open finanalyst opened 4 days ago
- in the discussions about RakuDoc v2, the allow option is difficult to implement in combination with syntax highlighting, and needs to be handled separately. This will be developed in due course. The problem existed with the previous highlighter too.
Actually I've already done something similar in Rainbow with quote adverbs already (see the Adverbs section here). This shouldn't be too hard to get right. Can you provide a quick primer how this option is meant to work exactly? (Ideally create a ticket.)
Quick smartphone response to Patrick.
=for code :allow<B I>
my $var = 'filename.conf'.B<IO>.I<slurp>(:close);
my $strng = 'This is B<bold> but this is NOT U<underlined>';
Normal para in Rakudoc source.
On Mon, 11 Nov 2024, 13:10 Patrick Böker, @.***> wrote:
- in the discussions about RakuDoc v2, the allow option is difficult to implement in combination with syntax highlighting, and needs to be handled separately. This will be developed in due course. The problem existed with the previous highlighter too.
Actually I've already done something similar in Rainbow with quote adverbs already (see the Adverbs section here https://git.sr.ht/~patrickb/Rainbow/tree/main/item/t/test-data/string.rakumod). This shouldn't be too hard to get right. Can you provide a quick primer how this option is meant to work exactly? (Ideally create a ticket.)
— Reply to this email directly, view it on GitHub https://github.com/Raku/doc-website/issues/419#issuecomment-2468143967, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACYZHGOIAJ63GZC7CBKDDT2ACUDJAVCNFSM6AAAAABRO7STZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRYGE2DGOJWG4 . You are receiving this because you authored the thread.Message ID: @.***>
@Raku/core We have changed the syntax highlighter from one developed for the atom editor (atom-perl6-highlighter) to a Raku based one (Rainbow).
<repo root>/Website/plugins/rainbow/scss/rainbow-light.scss
.../scss/rainbow-dark.scss
$code-.....
and start at about line 15.Known problems:
=for code :allow<C>
or other value in 'allow', the:allow
option is not respected.