Skip to main content

Posts

Showing posts with the label blogger

PRISM SYNTAX HIGHLIGHTER

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...

WHEN BLOGGER GOES BAD

I am trying to figure out why the "hero" image for the WHEN LIVERY DESIGN GOES BAD post is not showing on the home page when it is the featured post. It also looks like when it is moved to the recent posts list it is not properly spaced above the post below it. UPDATE It turns out the problem was an improperly placed <i> (italic) tag before a <blockquote> tag in the HTML markup. [Update: April 23, 2020] It seems even properly placed italic tags can cause this problem, at least with this template or Blogger itself. Instead of tags, use inline markup instead: <span style="font-style: italic;"></span> (or other CSS style methods)