boots-edu / textbook

The textbook for the Boots curriculum
https://boots-edu.github.io/textbook/
0 stars 0 forks source link

Selective code runner #33

Closed gsilber closed 1 month ago

gsilber commented 1 month ago

It would be nice to have code highlighting without the run button.

Currently



gives both.  Some code segments in the text are not runnable, but I would still like them highlighted as typescript.
acbart commented 1 month ago

I think this should be pretty easy to do with an Inline Attribute List that adds an additional class that deactivates the code runner! I'll take a stab sometime next week.

gsilber commented 1 month ago

I just submitted a pull request to fix this. Since it is in your working code, I didn’t want to just merge it in like I have been doing with the text. One line change to exclude the class no-run in setup_runners.ts. If you are ok with it, please merge or send me a note to merge it myself.

Greg

From: Austin Cory Bart @.> Sent: Saturday, July 13, 2024 9:52 AM To: boots-edu/textbook @.> Cc: Greg Silber @.>; Author @.> Subject: Re: [boots-edu/textbook] Selective code runner (Issue #33)

I think this should be pretty easy to do with an Inline Attribute List that adds an additional class that deactivates the code runner! I'll take a stab sometime next week.

— Reply to this email directly, view it on GitHub https://github.com/boots-edu/textbook/issues/33#issuecomment-2226911931 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVF3ICOSMR6ZLS5PLKN5JDZMEWIBAVCNFSM6AAAAABKXXHMA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRWHEYTCOJTGE . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AHVF3ICU6VJDFQH3VK4NMTLZMEWIBA5CNFSM6AAAAABKXXHMA6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUEXP5LW.gif Message ID: < @.> @.>