{"id":19229,"date":"2022-07-15T00:22:30","date_gmt":"2022-07-15T00:22:30","guid":{"rendered":"https:\/\/jurn.link\/dazposer\/?p=19229"},"modified":"2022-08-19T16:06:25","modified_gmt":"2022-08-19T16:06:25","slug":"python-code-display-added","status":"publish","type":"post","link":"https:\/\/jurn.link\/dazposer\/index.php\/2022\/07\/15\/python-code-display-added\/","title":{"rendered":"Python code display added"},"content":{"rendered":"<p>Now that this blog is self-hosted I can display Python and other code rather better. After trying a half dozen possibilities I settled on the free WordPress plugin <a href=\"https:\/\/wordpress.org\/plugins\/urvanov-syntax-highlighter\/\">Urvanov Syntax Highlighter<\/a>. Works with the Classic editor in txt mode, and has none of that Blocks nonsense.<\/p>\n<p>Embedding in a post is via a form, or more simply via a blog code snippet&#8230;<\/p>\n<pre class=\"nums:false lang:as decode:true \" >&lt;pre class=\"nums:false lang:python decode:true \" &gt;\r\nadd code here\r\n&lt;pre&gt;<\/pre>\n<p>It has a very large range of display colouring options. Doesn&#8217;t mess with the Python code, so if the plugin fails the code is still valid in plain-text. Doesn&#8217;t mess with stuff in existing <em>code<\/em> tags.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that this blog is self-hosted I can display Python and other code rather better. After trying a half dozen possibilities I settled on the free WordPress plugin Urvanov Syntax Highlighter. Works with the Classic editor in txt mode, and has none of that Blocks nonsense. Embedding in a post is via a form, or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,27],"tags":[],"class_list":["post-19229","post","type-post","status-publish","format-standard","hentry","category-housekeeping","category-python-scripts"],"_links":{"self":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts\/19229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/comments?post=19229"}],"version-history":[{"count":7,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts\/19229\/revisions"}],"predecessor-version":[{"id":19238,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts\/19229\/revisions\/19238"}],"wp:attachment":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/media?parent=19229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/categories?post=19229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/tags?post=19229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}