<?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>Abraxas &#187; Plugin</title>
	<atom:link href="http://www.effinger.org/blog/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.effinger.org/blog</link>
	<description>a personal knowledge base</description>
	<lastBuildDate>Sun, 06 Jun 2010 17:41:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WP-Syntax Editor Integration Plugin &#8211; WP-Syntax im WordPress Editor nutzen</title>
		<link>http://www.effinger.org/blog/2009/12/30/wp-syntax-editor-integration-plugin-wp-syntax-im-wordpress-editor-nutzen/</link>
		<comments>http://www.effinger.org/blog/2009/12/30/wp-syntax-editor-integration-plugin-wp-syntax-im-wordpress-editor-nutzen/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 10:11:45 +0000</pubDate>
		<dc:creator>Markus Effinger</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WP-Syntax]]></category>

		<guid isPermaLink="false">http://www.effinger.org/blog/?p=767</guid>
		<description><![CDATA[<p>Um komfortabel mit WP-Syntax im Wordpress-Editor zu arbeiten, habe ich ein Plugin geschrieben, welches jeweils einen Button im visuellen Editor (TinyMCE) und im HTML-Editor hinzufügt. Zuvor hatte ich immer die quicktag.php editiert, was aber auf Dauer sehr mühsam war, da man dies bei jedem Wordpress Update machen musste. Das Plugin ist ab sofort auf wordpress.org [...]]]></description>
			<content:encoded><![CDATA[<p>Um komfortabel mit WP-Syntax im Wordpress-Editor zu arbeiten, habe ich ein Plugin geschrieben, welches jeweils einen Button im visuellen Editor (TinyMCE) und im HTML-Editor hinzufügt. Zuvor hatte ich immer <a href="http://www.effinger.org/blog/2008/12/06/wordpress-syntax-highlighting-mit-wp-syntax/">die quicktag.php editiert</a>, was aber auf Dauer sehr mühsam war, da man dies bei jedem Wordpress Update machen musste. Das Plugin ist ab sofort auf wordpress.org unter <a href="http://wordpress.org/extend/plugins/wp-syntax-integration/">http://wordpress.org/extend/plugins/wp-syntax-integration/</a> verfügbar.</p>
<p>Nutzen kann man das Plugin im <strong>visuellen Modus</strong> folgendermaßen:</p>
<ol>
<li>Den zu hervorhebenden Code schreiben bzw. einfügen</li>
<li>Den Code markieren<br />
<a href="http://www.effinger.org/blog/wp-content/uploads/2009/12/SS-20091229161027.png"><img class="aligncenter size-full wp-image-879" title="Selected text" src="http://www.effinger.org/blog/wp-content/uploads/2009/12/SS-20091229161027.png" alt="" width="158" height="22" /></a></li>
<li>Auf den Button &#8220;Enclose with pre-block of WP-Syntax&#8221; klicken (im Screenshot rot markiert)<a href="http://www.effinger.org/blog/wp-content/uploads/2009/12/button_red.png"><img class="aligncenter size-full wp-image-872" title="Screenshot Button &quot;Enclose with pre-block of WP-Syntax&quot;" src="http://www.effinger.org/blog/wp-content/uploads/2009/12/button_red.png" alt="" width="767" height="69" /></a></li>
<li>Programmiersprache eingeben. Falls Zeilennummerierung gewünscht ist, durch ein Komma getrennt, die erste Zeilennummer ergänzen<br />
<a href="http://www.effinger.org/blog/wp-content/uploads/2009/12/Die_Seite_mit_der_Adresse_httpwww.effinger.org_meldet-20091229161212.png"><img class="aligncenter size-full wp-image-880" title="Screenshot von der Eingabe der Programmiersprache und der Zeilennummer" src="http://www.effinger.org/blog/wp-content/uploads/2009/12/Die_Seite_mit_der_Adresse_httpwww.effinger.org_meldet-20091229161212.png" alt="" width="326" height="145" /></a></li>
<li>OK klicken und fertig!</li>
</ol>
<p><strong>Wichtig:</strong> Bei der Eingabe im visuellen Modus werden HTML-Tags entfernt, die von TinyMCE nicht erlaubt werden. Dieses Verhalten lässt sich umgehen, wenn man HTML-Tags nicht im visuellen Modus sondern im HTML-Modus eingibt.</p>
<p>Das Plugin lässt sich auch im <strong>HTML-Modus</strong> nutzen. Die Vorgehensweise ist prinzipiell gleich:</p>
<ol>
<li>Den zu hervorhebenden Code schreiben bzw. einfügen</li>
<li>Den Code markieren<br />
<a href="http://www.effinger.org/blog/wp-content/uploads/2009/12/SS-20091229161027.png"><img title="Selected text" src="http://www.effinger.org/blog/wp-content/uploads/2009/12/SS-20091229161027.png" alt="" width="158" height="22" /></a></li>
<li>Auf den Button &#8220;pre (WP-Syntax)&#8221; klicken (im Screenshot rot markiert)<br />
<a href="http://www.effinger.org/blog/wp-content/uploads/2009/12/button_red_html.png"><img class="aligncenter size-full wp-image-881" title="Screenshot Button &quot;pre (WP-Syntax)&quot;" src="http://www.effinger.org/blog/wp-content/uploads/2009/12/button_red_html.png" alt="" width="769" height="60" /></a></li>
<li>Programmiersprache eingeben. Falls Zeilennummerierung gewünscht ist, durch ein Komma getrennt, die erste Zeilennummer ergänzen<br />
<a href="http://www.effinger.org/blog/wp-content/uploads/2009/12/Die_Seite_mit_der_Adresse_httpwww.effinger.org_meldet-20091229161212.png"><img title="Screenshot von der Eingabe der Programmiersprache und der Zeilennummer" src="http://www.effinger.org/blog/wp-content/uploads/2009/12/Die_Seite_mit_der_Adresse_httpwww.effinger.org_meldet-20091229161212.png" alt="" width="326" height="145" /></a></li>
<li>OK klicken und fertig!</li>
</ol>
<p>Ein herzliches Dankeschön an die Programmierer der folgenden Extensions bzw. deren Erläuterungen, die mir sehr weitergeholfen haben:</p>
<ul>
<li><a href="http://ctx2002.wordpress.com/2008/07/28/how-to-write-a-tinymce-plugin-for-wordpress/">How to write a TinyMCE plugin for Wordpress</a></li>
<li><a href="http://www.engfers.com/plugins/tinymce-valid-elements/">TinyMCE Valid Elements</a></li>
<li><a href="http://wiki.moxiecode.com/index.php/TinyMCE:Commands">TinyMCE Commands</a></li>
<li><a href="http://36flavours.com/2009/09/using-wp-syntax-and-the-visual-editor/">Using WP-Syntax and the visual editor</a></li>
<li><a href="http://granades.com/2007/02/14/adding-quicktags-to-wordpress/">Adding Quicktags to WordPress</a></li>
<li><a href="http://wordpress.org/extend/plugins/davids-ultra-quicktags/">David&#8217;s Ultra Quicktags</a></li>
<li><a href="http://scribu.net/wordpress/right-way-to-add-custom-quicktags.html">The right way to add custom quicktags</a></li>
<li><a href="http://website-in-a-weekend.net/extending-wordpress/diy-wordpress-unraveling-quicktags-wordpress-plugins/">Unraveling Quicktags for WordPress Plugins</a></li>
<li><a href="http://bytes.com/topic/javascript/answers/163382-need-escape-html-chracters-js#post630671">Escape HTML characters in JavaScript</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.effinger.org/blog/2009/12/30/wp-syntax-editor-integration-plugin-wp-syntax-im-wordpress-editor-nutzen/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
