Allow highlighting of code blocks in notes #299
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The CSS used for shows under the previous site design made
<pre>tagged text (code blocks in Pandoc parlance) to be more visible in contrast to other text. Such text also showed a horizontal scrollbar if needed (though this was mainly used to compensate for the narrowness of the HPR web pages at that time).Looking at the version of show 4114 created with the old CSS (see attached PDF), the code (and other) sections stand out more than they do in the current version of this episode.
Could highlighting of this type be restored? Using a colour more in keeping with the new site design perhaps?
Rather than making it the default for all
<pre>text, enabling it through anidorclassattribute would probably be preferable to make it available to those hosts who wish to use it, rather than imposing it on everyone. As a Pandoc user, adding such attributes is not difficult.Attachment:
hpr4114_shownotes_dev.pdf, created from a standalone HTML file created as part of my workflow to let me see how the final version of my notes will look.Thanks for the great issue description!
Merged to main
One oddity following this change:
On Vivaldi and Brave the new highlighted
<pre>areas have horizontal and vertical scrollbars all the time. Firefox does not show these scrollbars.The original CSS would only add the horizontal scrollbar if the text overflowed horizontally (
overflow: auto;).