{"id":60500,"date":"2020-09-23T16:27:23","date_gmt":"2020-09-23T20:27:23","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=60500"},"modified":"2020-09-23T16:27:40","modified_gmt":"2020-09-23T20:27:40","slug":"literate-programming-wordpress","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/","title":{"rendered":"Literate Programming and WordPress"},"content":{"rendered":"\n<p>\nWordPress is all about user customization.  It provides the groundwork\nfor managing your content, and the rest of the creativity is up to\nyou.  Not only is WordPress expressive with regard to style but also\nin how you choose to develop and manage your customization.  In this\narticle, you&#8217;ll learn about how to apply literate programming concepts\nto WordPress.\n<\/p>\n\n<p class=\"alert alert-info\">The steps taken in this article are compatible\nwith optimized <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\">\nWordPress Hosting<\/a> accounts.\n<\/p>\n\n<div id=\"text-table-of-contents\">\n<ul>\n<li><a href=\"#literate-programming\">What is Literate Programming?<\/a><\/li>\n<li><a href=\"#literate-programming-and-wordpress\">Literate Programming and WordPress<\/a><\/li>\n<li><a href=\"#install-base-theme\">How To Install The Freerun Base Theme<\/a><\/li>\n<\/ul>\n<\/div>\n\n<center>\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/rMzEIJMm5_8\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/center>\n\n<div id=\"outline-container-org03dcbc4\" class=\"outline-2\">\n<h2 id=\"literate-programming\">What is Literate Programming?<\/h2>\n<div class=\"outline-text-2\" id=\"text-literate-programming\">\n<p>\nLiterate programming is an alternative way to write computer programs.\n<\/p>\n\n<p>\nTraditional programs consist of a file, or series of files, that\ncontain the source code of the program interspersed with optional\ncomments about what the discrete bits of code are doing.\n<\/p>\n\n<p>\nLiterate programming flips the traditional scheme.  A literate program\nis a written document interspersed with bits of code.\n<\/p>\n\n<p>\nHowever, since literate programming is not the standard mode of\nprogramming, there are few applications out there that support it.\nOne of the most common and widely available applications to provide\nsupport for literate programming is the emacs text editor.\n<\/p>\n\n<p class=\"alert alert-info\">\nIn order to follow along with this tutorial you will only need to \n<a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-install-gnu-emacs\/\">install emacs<\/a> \nand set up a <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/getting-started-with-a-wordpress-development-environment\/\">\ndesktop server for WordPress<\/a>.\n<\/p>\n<\/div>\n<\/div>\n\n<div id=\"outline-container-orgc68acb3\" class=\"outline-2\">\n<h2 id=\"literate-programming-and-wordpress\">Literate Programming and WordPress<\/h2>\n<div class=\"outline-text-2\" id=\"text-literate-programming-and-wordpress\">\n<p>\nWordPress provides an ideal use case for literate programming via its\ntheme and plugin architecture.\n<\/p>\n\n<p>\nYou can completely customize your WordPress site without ever touching\nthe massive source code.  With custom themes and plugins, you can\nwrite small, discrete programs that &#8220;hook&#8221; and &#8220;filter&#8221; the behaviors\nand functions provided by the core.\n<\/p>\n\n<p>\nLiterate programming provides a uniquely cohesive way for you to\nmanage the code for your themes and plugins by placing all of your\ncode in a single file.\n<\/p>\n<\/div>\n<\/div>\n\n<div id=\"outline-container-org65fbcfd\" class=\"outline-2\">\n<h2 id=\"install-base-theme\">How To Install The Freerun Base Theme<\/h2>\n<div class=\"outline-text-2\" id=\"text-install-base-theme\">\n<p>\nFollow these steps to install and &#8220;tangle&#8221; the sample theme.  (The\nfile itself contains instructions as well.)\n<\/p>\n\n<ol class=\"article_list\">\n<li><a href=\"https:\/\/github.com\/cryptstopher\/freerun-theme\" target=\"_blank\" rel=\"noopener noreferrer\">Download the theme from GitHub<\/a><\/li>\n<li>Create a new directory in the <code>\/wp-content\/themes\/<\/code> directory for your theme files<\/li>\n<li>Place the README.ORG file in the new theme directory<\/li>\n<li>Open the README file in Emacs<\/li>\n<li>Enter the key command <code>Ctrl-C Ctrl-V t<\/code><\/li>\n<\/ol>\n\n<p>\nEmacs will &#8220;tangle&#8221; the necessary files (create them in the directory)\nso that your theme will be available in WordPress.\n<\/p>\n\n<hr>\n\n<p>\nThat is one example of how you can introduce literate programming\nfundamentals into your WordPress development workflow.  If you have\nany comments or questions feel free to drop them below.\n<\/p>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>WordPress is all about user customization. It provides the groundwork for managing your content, and the rest of the creativity is up to you. Not only is WordPress expressive with regard to style but also in how you choose to develop and manage your customization. In this article, you&#8217;ll learn about how to apply literate<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/\"> Read More ><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[56],"tags":[],"class_list":["post-60500","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Literate Programming for WordPress<\/title>\n<meta name=\"description\" content=\"In this article, learn how to apply literate programming concepts to WordPress using emacs as your text editor. This style of programming introduces a different approach to managing theme and plugin files.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Literate Programming for WordPress\" \/>\n<meta property=\"og:description\" content=\"In this article, learn how to apply literate programming concepts to WordPress using emacs as your text editor. This style of programming introduces a different approach to managing theme and plugin files.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-23T20:27:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-23T20:27:40+00:00\" \/>\n<meta name=\"author\" content=\"Christopher Maiorana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Maiorana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/\"},\"author\":{\"name\":\"Christopher Maiorana\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\"},\"headline\":\"Literate Programming and WordPress\",\"datePublished\":\"2020-09-23T20:27:23+00:00\",\"dateModified\":\"2020-09-23T20:27:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/\"},\"wordCount\":412,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/\",\"name\":\"Literate Programming for WordPress\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2020-09-23T20:27:23+00:00\",\"dateModified\":\"2020-09-23T20:27:40+00:00\",\"description\":\"In this article, learn how to apply literate programming concepts to WordPress using emacs as your text editor. This style of programming introduces a different approach to managing theme and plugin files.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Literate Programming and WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\",\"name\":\"Christopher Maiorana\",\"description\":\"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Literate Programming for WordPress","description":"In this article, learn how to apply literate programming concepts to WordPress using emacs as your text editor. This style of programming introduces a different approach to managing theme and plugin files.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"Literate Programming for WordPress","og_description":"In this article, learn how to apply literate programming concepts to WordPress using emacs as your text editor. This style of programming introduces a different approach to managing theme and plugin files.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2020-09-23T20:27:23+00:00","article_modified_time":"2020-09-23T20:27:40+00:00","author":"Christopher Maiorana","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Christopher Maiorana","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/"},"author":{"name":"Christopher Maiorana","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f"},"headline":"Literate Programming and WordPress","datePublished":"2020-09-23T20:27:23+00:00","dateModified":"2020-09-23T20:27:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/"},"wordCount":412,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/","name":"Literate Programming for WordPress","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2020-09-23T20:27:23+00:00","dateModified":"2020-09-23T20:27:40+00:00","description":"In this article, learn how to apply literate programming concepts to WordPress using emacs as your text editor. This style of programming introduces a different approach to managing theme and plugin files.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/literate-programming-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Literate Programming and WordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f","name":"Christopher Maiorana","description":"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.","sameAs":["https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/60500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=60500"}],"version-history":[{"count":5,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/60500\/revisions"}],"predecessor-version":[{"id":60523,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/60500\/revisions\/60523"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=60500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=60500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=60500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}