-
Notifications
You must be signed in to change notification settings - Fork 959
Description
One solution would be to enable line numbers in code blocks, and then have the text reference the appropriate lines.
Another solution would be to introduce some form of CSS/HTML markup to denote highlighted regions. The downside of this is that you couldn't just import code blocks into the book in the future (which I think I'd like to do for other reasons). Probably better to just leave the code pure.
For example, see the last code block in Ray Tracing: The Next Week, chapter 4 (this used code comments). See the first code block in Ray Tracing: The Rest of Your Life, chapter 7 (new chapter 8). This one uses background highlighting.
After discussion, we'll just use code comments to call out changes. We need to make these changes for all three books.