Skip to content

Need solution to highlighted code lines #11

@hollasch

Description

@hollasch

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions