<?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>Степень свободы &#187; Plugin</title>
	<atom:link href="http://www.snut.ru/?feed=rss2&#038;tag=plugin" rel="self" type="application/rss+xml" />
	<link>http://www.snut.ru</link>
	<description>Немного слов о жизни и IT</description>
	<lastBuildDate>Tue, 14 Dec 2010 19:11:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>WP-Syntax</title>
		<link>http://www.snut.ru/?p=186</link>
		<comments>http://www.snut.ru/?p=186#comments</comments>
		<pubDate>Thu, 18 Feb 2010 09:45:32 +0000</pubDate>
		<dc:creator>Snut</dc:creator>
				<category><![CDATA[Новости]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Objective C]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.snut.ru/?p=186</guid>
		<description><![CDATA[Отличный плагин, теперь код в моем блоге будет иметь привычный вид и подсветку. Actionscript 3: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 [...]]]></description>
			<content:encoded><![CDATA[<p>Отличный плагин, теперь код в моем блоге будет иметь привычный вид и подсветку.</p>
<p><strong>Actionscript 3:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">EventDispatcher</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">MouseEvent</span>;
&nbsp;
	<span style="color: #3f5fbf;">/**
	 * @author					Snut
	 * @version					1.0
	 * @playerversion			Flash 9
	 * @langversion				3.0
	 */</span>	
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Test extends <span style="color: #004993;">Sprite</span> <span style="color: #000000;">&#123;</span>
		<span style="color: #009900;">//------------------------</span>
		<span style="color: #009900;">//</span>
		<span style="color: #009900;">//  Constructor</span>
		<span style="color: #009900;">//</span>
		<span style="color: #009900;">//------------------------</span>
&nbsp;
		<span style="color: #3f5fbf;">/**
		 * Contructor
		 */</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">super</span>.<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ADDED_TO_STAGE</span>, <span style="color: #0033ff; font-weight: bold;">this</span>.handler_added<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> handler_added<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">super</span>.<span style="color: #004993;">stage</span>.<span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ADDED_TO_STAGE</span>, <span style="color: #0033ff; font-weight: bold;">this</span>.handler_added <span style="color: #000000;">&#41;</span>;
			<span style="color: #0033ff; font-weight: bold;">super</span>.<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">CLICK</span>, <span style="color: #0033ff; font-weight: bold;">this</span>.handler_click<span style="color: #000000;">&#41;</span>;
			<span style="color: #0033ff; font-weight: bold;">super</span>.<span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">REMOVED_FROM_STAGE</span>, <span style="color: #0033ff; font-weight: bold;">this</span>.handler_removed<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> handler_removed<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">super</span>.<span style="color: #004993;">stage</span>.<span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span>.<span style="color: #004993;">CLICK</span>, <span style="color: #0033ff; font-weight: bold;">this</span>.handler_click<span style="color: #000000;">&#41;</span>;
			<span style="color: #0033ff; font-weight: bold;">super</span>.<span style="color: #004993;">stage</span>.<span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">REMOVED_FROM_STAGE</span>, <span style="color: #0033ff; font-weight: bold;">this</span>.handler_removed<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> myMethod<span style="color: #000000;">&#40;</span>string<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">trace</span> <span style="color: #000000;">&#40;</span>string<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> handler_click<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">this</span>.myMethod<span style="color: #000000;">&#40;</span><span style="color: #990000;">'WP-syntax'</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><strong>Objective-C:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &lt;Foundation/Foundation.h&gt;</span>
&nbsp;
<span style="color: #a61390;">int</span> main <span style="color: #002200;">&#40;</span><span style="color: #a61390;">int</span> argc, <span style="color: #a61390;">const</span> <span style="color: #a61390;">char</span> <span style="color: #002200;">*</span> argv<span style="color: #002200;">&#91;</span><span style="color: #002200;">&#93;</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
    <span style="color: #400080;">NSAutoreleasePool</span> <span style="color: #002200;">*</span> pool <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #400080;">NSAutoreleasePool</span> alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span>;
&nbsp;
    <span style="color: #11740a; font-style: italic;">// insert code here...</span>
    NSLog<span style="color: #002200;">&#40;</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Hello, World!&quot;</span><span style="color: #002200;">&#41;</span>;
    <span style="color: #002200;">&#91;</span>pool drain<span style="color: #002200;">&#93;</span>;
    <span style="color: #a61390;">return</span> <span style="color: #2400d9;">0</span>;
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.snut.ru/?feed=rss2&amp;p=186</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>highlight.js</title>
		<link>http://www.snut.ru/?p=53</link>
		<comments>http://www.snut.ru/?p=53#comments</comments>
		<pubDate>Sun, 24 Aug 2008 06:49:40 +0000</pubDate>
		<dc:creator>Snut</dc:creator>
				<category><![CDATA[Новости]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.snut.ru/?p=53</guid>
		<description><![CDATA[package ru.snut.gui.dock { import flash.display.Sprite; import flash.net.URLLoader; import flash.net.URLRequest; import ru.snut.events.Event; public class Dock extends Sprite { /** * @private */ private var _loader:URLLoader; public function Dock(settingsXmlUrl:String) { super(); this._loader.addEventListener(Event.INIT, this.handler_loadInit); this._loader.addEventListener(Event.COMPLETE, this.handler_loadComplete); this._loader.load(new URLRequest(settingsXmlUrl)); } /** * @private */ private function handler_loadInit(event:Event):void { } /** * @private */ private function handler_loadComplete(event:Event):void { } } [...]]]></description>
			<content:encoded><![CDATA[<pre><code class="ActionScript"><span class="keyword">package</span> ru.snut.gui.dock {
	<span class="keyword">import</span> flash.display.Sprite;
	<span class="keyword">import</span> flash.net.URLLoader;
	<span class="keyword">import</span> flash.net.URLRequest;

	<span class="keyword">import</span> ru.snut.events.Event;

	<span class="keyword">public</span> <span class="class"><span class="keyword">class</span> <span class="title">Dock</span> <span class="inheritance"><span class="keyword">extends</span></span> <span class="title">Sprite</span> {</span>

		<span class="javadoc">/**
		 * <span class="javadoctag">@private</span>
		 */</span>
		<span class="keyword">private</span> var _loader:URLLoader;

		<span class="keyword">public</span> function Dock(settingsXmlUrl:String)	{
			<span class="keyword">super</span>();
			<span class="keyword">this</span>._loader.addEventListener(Event.INIT, <span class="keyword">this</span>.handler_loadInit);
			<span class="keyword">this</span>._loader.addEventListener(Event.COMPLETE, <span class="keyword">this</span>.handler_loadComplete);
			<span class="keyword">this</span>._loader.load(<span class="keyword">new</span> URLRequest(settingsXmlUrl));
		}
		<span class="javadoc">/**
		 * <span class="javadoctag">@private</span>
		 */</span>
		<span class="keyword">private</span> function handler_loadInit(event:Event):<span class="keyword">void</span> {

		}

		<span class="javadoc">/**
		 * <span class="javadoctag">@private</span>
		 */</span>
		<span class="keyword">private</span> function handler_loadComplete(event:Event):<span class="keyword">void</span> {

		}

	}
}</code></pre>
<p>вот так у меня теперь будет выглядеть код в блоге, правда придется несколько плагин напильником подработать.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snut.ru/?feed=rss2&amp;p=53</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
