{"id":31435,"date":"2021-01-25T15:31:15","date_gmt":"2021-01-25T20:31:15","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=31435"},"modified":"2021-01-26T09:13:25","modified_gmt":"2021-01-26T14:13:25","slug":"codye-1-1-3","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2021\/01\/25\/codye-1-1-3\/","title":{"rendered":"Codye 1.1.3"},"content":{"rendered":"<p><a href=\"https:\/\/eclecticlight.co\/2021\/01\/25\/publishing-code-in-wordpress-articles\/\">Howard Oakley<\/a>:<\/p>\n<blockquote cite=\"https:\/\/eclecticlight.co\/2021\/01\/25\/publishing-code-in-wordpress-articles\/\">\n<p>In the six years since I started to publish articles here, one feature I&rsquo;ve been searching for is a good way to present source code. This article is the ultimate gamble: I&rsquo;m going to explain how to do this, and demonstrate how well it works. So if it all goes horribly wrong, please don&rsquo;t laugh. This demo is based on a single tool, the cheap app Codye, from the App Store, and aimed at anyone with a WordPress blog; it may well be suitable for other blogging systems too.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/darioroa.com\/codye\/\">Codye<\/a> really feels like a Catalyst app. On the other hand, I&rsquo;m not aware of any native apps with this feature set. BBEdit can copy code as HTML, and you can copy and paste from Xcode to TextEdit and then export as HTML, but these methods require post-processing if you want HTML that uses CSS classes instead of raw formatting. On the other hand, Codye uses a JavaScript-based parser, which in my experience is not as accurate.<\/p>","protected":false},"excerpt":{"rendered":"<p>Howard Oakley: In the six years since I started to publish articles here, one feature I&rsquo;ve been searching for is a good way to present source code. This article is the ultimate gamble: I&rsquo;m going to explain how to do this, and demonstrate how well it works. So if it all goes horribly wrong, please [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2021-01-25T20:31:19Z","apple_news_api_id":"f6626b5f-5878-4737-8367-25bb36dd837a","apple_news_api_modified_at":"2021-01-26T14:13:29Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/A9mJrX1h4RzeDZyW7Nt2Deg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[159,154,1621,338,30,32,1891,71,901,1050,740,226],"class_list":["post-31435","post","type-post","status-publish","format-standard","hentry","category-technology","tag-applescript","tag-bbedit","tag-marzipan","tag-css","tag-mac","tag-macapp","tag-macos-11-0","tag-programming","tag-swift-programming-language","tag-textedit","tag-wordpress","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=31435"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31435\/revisions"}],"predecessor-version":[{"id":31436,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31435\/revisions\/31436"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=31435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=31435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=31435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}