Now that this blog has accumulated a few posts with code—either Python or SVG—that is intended to be copied by the user, it would be nice to find a more clear and convenient way to present it. I would prefer to learn the necessary markup on my own—I already added buttons to highlight and automatically copy code to the Clipboard—but I'm curious to see how a dedicated service does it. One option is Prism for syntax highlighting and line numbering and GoFile for free hosting of the prism.css and prism.js CDN files (and perhaps the SVG files as well). This is not an advertisement or endorsement for either service—particularly GoFile, which seems too good to be true, frankly. I just want to do a test for now. [Edit: GoFile does have a major catch: I just read the FAQ and files may be deleted after 10 days of inactivity. Time to start using Google Drive finally.] Here is the "Coy" theme for Python syntax styling with optional line numbering added: # Define var...
A little used and neglected blog of various things