<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>quirm.net &#187; markdown</title>
	<atom:link href="http://quirm.net/tag/markdown/feed/" rel="self" type="application/rss+xml" />
	<link>http://quirm.net</link>
	<description>wordpress &#38; web design</description>
	<lastBuildDate>Fri, 04 May 2012 23:47:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Markdown Toolbar Installation</title>
		<link>http://quirm.net/2008/10/01/markdown-toolbar-installation/</link>
		<comments>http://quirm.net/2008/10/01/markdown-toolbar-installation/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 10:32:59 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=114</guid>
		<description><![CDATA[Requirements Javascript enabled browser PHP &#8211; for accesskeys. Demo The demo is available at: http://www.quirm.net/markdown/ Download Remember you will need a copy of markdown. http://www.michelf.com/projects/php-markdown/ or http://daringfireball.net/projects/markdown/ Settings On your page you will need to add in the following: &#60;script src="toolbar.js" type="text/javascript"&#62;&#60;/script&#62; &#60;script src="textarea.js" type="text/javascript"&#62;&#60;/script&#62; &#60;script src="onload.js" type="text/javascript"&#62;&#60;/script&#62; &#60;script type="text/javascript" src="prototype.js"&#62;&#60;/script&#62; &#60;link rel="stylesheet" type="text/css" href="test.css"&#8230;]]></description>
			<content:encoded><![CDATA[<h3>Requirements</h3>
<p>Javascript enabled browser<br />
PHP &#8211; for accesskeys.</p>
<p><span id="more-114"></span></p>
<h3>Demo</h3>
<p>The demo is available at: <a href="http://www.quirm.net/markdown/">http://www.quirm.net/markdown/</a></p>
<h3>Download</h3>
Note: There is a file embedded within this post, please visit this post to download the file.
<p><em>Remember</em> you will need a copy of markdown.<br />
<a href="http://www.michelf.com/projects/php-markdown/">http://www.michelf.com/projects/php-markdown/</a> or<br />
<a href="http://daringfireball.net/projects/markdown/">http://daringfireball.net/projects/markdown/</a></p>
<h3>Settings</h3>
<p>On your <strong>page</strong> you will need to add in the following:  </p>
<div>
<pre>
&lt;script src="toolbar.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="textarea.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="onload.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="prototype.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="test.css" /&gt;
</pre>
</div>
<p>In <strong>toolbar.js</strong> you can amend the following:</p>
<ul>
<li><code>addtothisbit = 'canvas';</code><br />
This is the id of the textarea to add the toolbar to.</li>
<li><code>locationofakeys = 'accesskeys.php';</code><br />
This is the path to the accesskey script set to &#8221; if not used.</li>
<li><code>locationofpreviewscript = 'preview.php';</code><br />
The path to the preview script. The example includes a simple preview.php script. However it should be possible to change this to use the original perl script, and hence PHP would not be required.</li>
<li><code>colour1='#ffb';</code><br />
The standard button colour</li>
<li><code>colour2='#fde';</code><br />
The standard more/less button colour</li>
<li><code>colour3='#cdf';</code><br />
The preview button colour</li>
<li><code>colour4='#cfd';</code><br />
The edit button colour</li>
<li><code>colour5='#eee';</code><br />
The <em>disabled</em> button colour (when previewing your markdown).</li>
<li><code>colour6='#cfd';</code><br />
The highlighted (open tag) standard button colour</li>
</ul>
<p>The buttons have been preset for markdown, however they can be easily changed to accomodate other systems, including standard markup or BBCode. The buttons configuration starts on line 177 or thereabouts of toolbar.js.</p>
<p>If <strong>access keys</strong> are used then you also need to adapt the <code>$links array</code> in accesskeys.php, this should match the <code>accKey</code> you set for each toolbar button, though you can add spaces.</p>
<p>The <strong><abbr title="Cascading Style Sheet">CSS</abbr></strong> also references these colours and would need to match:</p>
<div>
<pre>/* toolbar settings */
/* need to match your javascript colours */
#ed_extra_toolbar input, #ed_toolbar input{
    padding:2px;
    color:#000;
    /*variable colour1*/
    background:#ffb;
    margin-right:2px;
    font-size:80%;
}

#ed_toolbar input#ed_preview{
    /*variable colour3*/
    background:#cdf;
    width:5em;
}
#ed_toolbar input#ed_extra_show,#ed_extra_toolbar input#ed_extra_hide{
    /*variable colour2*/
    background:#fde;
}</pre>
</div>
<p>The scripts should then be integrated. Although these scrips are unsupported, feel free to discuss them on our <a href="http://forum.quirm.net/">forums</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2008/10/01/markdown-toolbar-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Markdown Toolbar</title>
		<link>http://quirm.net/2008/10/01/markdown-toolbar/</link>
		<comments>http://quirm.net/2008/10/01/markdown-toolbar/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 10:28:13 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://quirm.net/?p=106</guid>
		<description><![CDATA[The markdown toolbar was created by utilising and adapting existing methods and scripts. I have pulled them altogether along with, in some cases, hefty modifications to create a Markdown Toolbar. There are a lot of WYSIWYG utilities out there, but very few create good mark-up. Even fewer enable you to edit the text without having&#8230;]]></description>
			<content:encoded><![CDATA[<p><img src="http://quirm.net/wp-content/uploads/2008/10/tools.jpg" alt="" title="tools" width="200" height="128" class="alignright size-medium wp-image-107" /> The markdown toolbar was created by utilising and adapting existing methods and scripts. I have pulled them altogether along with, in some cases, hefty modifications to create a Markdown Toolbar.</p>
<p>There are a lot of <acronym title="What You See Is What You Get">WYSIWYG</acronym> utilities out there, but very few create good mark-up. Even fewer enable you to edit the text without having to sift through mark-up that may be unintelligible. This is where Markdown is useful, but, until now, without a <strong>toolbar</strong> users have had to remember the syntax.</p>
<p>These scripts are designed to fill that gap but a few extras have also been added to enhance the experience.</p>
<p><span id="more-106"></span></p>
<p>Firstly  Increase/Decrease links have been added to allow authors to change the size of the main textarea at will. </p>
<p>Secondly, there is now an option to set access keys. Not everyone uses accesskeys, so, by default, none are set. But if you do require keyboard shortcuts, you can define as many, or as few, of your own as you want.</p>
<p>Finally the added extra that has not been widely available, at least for Markdown &#8211; <strong>an instant preview</strong>.</p>
<p>I use <abbr title="PHP Hypertext Preprocessor">PHP</abbr> Markdown which is available from <a href="http://www.michelf.com/projects/php-markdown/">http://www.michelf.com/projects/php-markdown/</a> and was originally developed by Michel Fortinas a PHP port of the original Perl version by John Gruber. The orginal can be found at </p>
<p><a href="http://daringfireball.net/projects/markdown/">http://daringfireball.net/projects/markdown/</a>.</p>
<p>I would like to thank the following people for allowing me to use their scripts:</p>
<ul>
<li><a href="http://www.alexking.org/">Alex King</a> &#8211; I heavily modified his quicktags script.</li>
<li><a href="http://www.juicystudio.com">Gez Lemon</a> &#8211; Increase/decrease textarea script.</li>
</ul>
<p>To enable the preview I utilised prototype.js from <a href="http://prototype.conio.net/">http://prototype.conio.net/</a> and the example on <a href="http://www.i-marco.nl/weblog/pivot/entry.php?id=325">http://www.i-marco.nl/weblog/pivot/entry.php?id=325</a></p>
<p>As the preview was dependant on javascript, I did originally try to utilise the editable accesskeys script from <a href="http://golem.ph.utexas.edu/~distler/blog/archives/000723.html">http://golem.ph.utexas.edu/~distler/blog/archives/000723.html</a>. However following some unsolvable errors (probably just integrating issues), I had to abandon that approach and utilised my own PHP accesskey class instead.</p>
<p>PHP is <strong>not</strong> required to get the main scripts to work, but you, without it, you will not be able to use the accesskeys option.</p>
<p>For download and instructions please see the <a href="http://quirm.net/2008/10/01/markdown-toolbar-installation/">Markdown Toolbar installation</a> post.</p>
]]></content:encoded>
			<wfw:commentRss>http://quirm.net/2008/10/01/markdown-toolbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

