Raku / doc-website

Tooling to build/run the documentation website
Artistic License 2.0
7 stars 10 forks source link

Syntax highlighting - eyes needed #419

Open finanalyst opened 4 days ago

finanalyst commented 4 days ago

@Raku/core We have changed the syntax highlighter from one developed for the atom editor (atom-perl6-highlighter) to a Raku based one (Rainbow).

Known problems:

patrickbkr commented 2 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.)

finanalyst commented 2 days ago

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: @.***>