{"id":76,"date":"2005-09-26T16:56:49","date_gmt":"2005-09-26T06:56:49","guid":{"rendered":"http:\/\/www.thunderguy.com\/semicolon\/wordpress\/plaintext-wordpress-plugin\/"},"modified":"2006-12-04T20:10:54","modified_gmt":"2006-12-04T10:10:54","slug":"plaintext-wordpress-plugin","status":"publish","type":"page","link":"https:\/\/thunderguy.com\/semicolon\/wordpress\/plaintext-wordpress-plugin\/","title":{"rendered":"Plaintext: a WordPress plugin"},"content":{"rendered":"<p><em>Latest version is 1.4.<\/em><\/p>\n<p><cite>Plaintext<\/cite> is a <a href=\"http:\/\/wordpress.org\/\">WordPress<\/a> plugin that helps you to distribute your Web source code to an admiring public, whether it&#8217;s PHP, HTML, ASP or anything else.<\/p>\n<p>Here&#8217;s the problem. When distributing code such a a WordPress plugin, developers use all kinds of tricks to allow users to download the PHP source code &#8212; you can&#8217;t just download a PHP file because the server will execute the code before you can download it. Some developers put their code into a zip file, so users have to open the zip to see the source. Some distribute files with a <code>.txt<\/code> or <code>.phps<\/code> extension, so users have to rename the file before saving it. It all adds up to a slightly inconvenient user experience.<\/p>\n<p>Here&#8217;s the solution! Install Plaintext. To distribute a source file, simply put it into your <code>wp-content\/plaintext\/<\/code> directory inside your WordPress installation. Then, users can view or download the file simply by going to <code>\/plaintext<\/code> inside your blog directory. This works for PHP files, HTML files, ASP files &#8212; in fact, any kind of text file at all. For example, you can upload a file to your server as <code>wp-content\/plaintext\/example.php<\/code>. Then your readers can simply go to <cite>yourblog.com\/plaintext\/example.php<\/cite> to view or save the source code.<\/p>\n<h2>Compatibility<\/h2>\n<p>Plaintext works with WordPress versions 1.5 and 2.<\/p>\n<h2>Download and Install<\/h2>\n<ol>\n<li>Download the plaintext.php file (see the <a href=\"#download\">end<\/a> of this article for download location).<\/li>\n<li>Copy plaintext.php into your WordPress plugins directory (wp-content\/plugins).<\/li>\n<li>Log in to WordPress administration. Go to the Plugins page and click Activate for Plaintext.<\/li>\n<li>In WordPress administration, go to Options and click Permalinks to complete installation.<\/li>\n<li>Create a directory called <code>plaintext<\/code> in your <code>wp-content<\/code> directory.<\/li>\n<\/ol>\n<h2>Problems, questions or requests?<\/h2>\n<p>If you find any problems, please let me know by leaving a comment at the bottom of this page. You can also leave a comment if you have any questions about how it works, or if you would like to request a feature.<\/p>\n<h2>Technical notes<\/h2>\n<p>If your server setup does not allow fancy permalinks, then Plaintext will not work.<\/p>\n<h2><a id=\"download\"><\/a>Download<\/h2>\n<p>You can download <a href=\"http:\/\/semi-wp-plugins.svn.sourceforge.net\/viewvc\/*checkout*\/semi-wp-plugins\/plaintext\/branches\/current\/plaintext.php\">plaintext.php<\/a> or view the <a href=\"http:\/\/semi-wp-plugins.svn.sourceforge.net\/viewvc\/semi-wp-plugins\/plaintext\/branches\/current\/plaintext.php?view=markup\">source code<\/a>. Don&#8217;t forget to check out all the other plugins available here &#8212; there&#8217;s bound to be one that you will find useful.<\/p>\n<p>I write these WordPress plugins because I enjoy doing it, but it does take up a lot\r\nof my time. If you think this plugin is useful, please consider donating some appropriate\r\namount.<\/p>\r\n\r\n<div style=\"float: left; padding: 0.25em 1em 0.5em 0; margin: 1em 0 0 0;\">\r\n<form action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\">\r\n<div>\r\n<input type=\"hidden\" name=\"cmd\" value=\"_s-xclick\" \/>\r\n<input type=\"image\" src=\"https:\/\/www.paypal.com\/en_US\/i\/btn\/x-click-but04.gif\" style=\"border:none\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\" \/>\r\n<input type=\"hidden\" name=\"encrypted\" value=\"-----BEGIN PKCS7-----MIIHXwYJKoZIhvcNAQcEoIIHUDCCB0wCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9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8LfBIwDQYJKoZIhvcNAQEBBQAEgYB3CtAsDm+ZRBkd\/XLEhUx0IbaeyK9ymOT8R5EQfSZnoJ+QP05XWBc8zi21wSOiQ8nH9LtN2MtS4GRBAQFU1vbvGxw6bG2gJfggJ1pDPUOtkFgf1YA8At+m2I6G2E+YWx2\/QHdfMo3BpTJWQOUka52wjuTmIX9X6+CFMPokF91f0w==-----END PKCS7-----\r\n\" \/>\r\n<\/div>\r\n<\/form>\r\n<\/div>\r\n<p>Click here to donate using a credit card or PayPal.<\/p>\r\n\r\n<p style=\"clear:left\">\r\n<img decoding=\"async\" src=\"http:\/\/www.thunderguy.com\/semicolon\/wp\/wp-content\/uploads\/2011\/06\/BC_Rnd_32px.png\" style=\"float: left; padding: 0.25em 1em 0.5em 0; margin: 0;\" \/>\r\nSend <a href=\"http:\/\/bitcoin.org\/\">Bitcoins<\/a> to address<br \/>\r\n<tt>1542gqyprvQd7gwvtZZ4x25cPeGWVKg45x<\/tt><\/p>\r\n<h2>Full WordPress plugin list<\/h2>\n<ul class=\"plugin-list\">\n\r\n\t\r\n\t<!--\r\n\tchild_of=47&title_li=&sort_column=post_title\r\n\t-->\r\n\t\r\n\t<li class=\"page_item\"><a href=\"https:\/\/thunderguy.com\/semicolon\/wordpress\/code-markup-wordpress-plugin\/\" title=\"Code Markup: a WordPress plugin\">Code Markup<\/a> &#8212; Quickly paste code samples into your posts -- you can even include HTML markup in the code sample.<\/li>\r\n<li class=\"page_item\"><a href=\"https:\/\/thunderguy.com\/semicolon\/wordpress\/evermore-wordpress-plugin\/\" title=\"Evermore: a WordPress plugin\">Evermore<\/a> &#8212; Automatically display a short preview of your posts on the home page and other multiple-post pages, along with a link to the full post.<\/li>\r\n<li class=\"page_item\"><a href=\"https:\/\/thunderguy.com\/semicolon\/wordpress\/fixback-wordpress-plugin\/\" title=\"FixBack: a WordPress plugin\">FixBack<\/a> &#8212; Ensure trackbacks and pingbacks are sent with the correct link back to your blog.<\/li>\r\n<li class=\"page_item\"><a href=\"https:\/\/thunderguy.com\/semicolon\/wordpress\/less-wordpress-plugin\/\" title=\"Less: a WordPress plugin\">Less<\/a> &#8212; Less is no more. It has been renamed to Seemore and moved to its own <a href=\"http:\/\/www.thunderguy.com\/semicolon\/wordpress\/seemore-wordpress-plugin\/\">Seemore plugin page<\/a>.<\/li>\r\n<li class=\"page_item current_page_item\"><a href=\"https:\/\/thunderguy.com\/semicolon\/wordpress\/plaintext-wordpress-plugin\/\" title=\"Plaintext: a WordPress plugin\">Plaintext<\/a> &#8212; Allow your readers to download source files (e.g. PHP, HTML, ASP) as plain text.<\/li>\r\n<li class=\"page_item\"><a href=\"https:\/\/thunderguy.com\/semicolon\/wordpress\/safe-title-wordpress-plugin\/\" title=\"Safe Title: a WordPress plugin\">Safe Title<\/a> &#8212; Use HTML in post titles in the default WordPress theme (or any other theme).<\/li>\r\n<li class=\"page_item\"><a href=\"https:\/\/thunderguy.com\/semicolon\/wordpress\/search-meter-wordpress-plugin\/\" title=\"Search Meter: a WordPress plugin\">Search Meter<\/a> &#8212; Find out what people are searching for on your blog, so you can write what your visitors want to read.<\/li>\r\n<li class=\"page_item\"><a href=\"https:\/\/thunderguy.com\/semicolon\/wordpress\/seemore-wordpress-plugin\/\" title=\"Seemore: a WordPress plugin\">Seemore<\/a> &#8212; Change the (more...) link so it jumps to the full post, not just the part after the link.<\/li>\r\n<li class=\"page_item\"><a href=\"https:\/\/thunderguy.com\/semicolon\/wordpress\/top-cat-wordpress-plugin\/\" title=\"Top Cat: a WordPress plugin\">Top Cat<\/a> &#8212; Specify a main category for your posts, and use template tags to display posts differently according to their main category.<\/li>\r\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Latest version is 1.4. Plaintext is a WordPress plugin that helps you to distribute your Web source code to an admiring public, whether it&#8217;s PHP, HTML, ASP or anything else. Here&#8217;s the problem. When distributing code such a a WordPress plugin, developers use all kinds of tricks to allow users to download the PHP source [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":47,"menu_order":0,"comment_status":"open","ping_status":"open","template":"page-wp-plugin.php","meta":{"footnotes":""},"class_list":["post-76","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/pages\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":0,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/pages\/76\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/pages\/47"}],"wp:attachment":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/media?parent=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}