<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>SyntaxHighlighter | Web活メモ帳</title>
	<atom:link href="https://blog.verygoodtown.com/tag/syntaxhighlighter/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.verygoodtown.com</link>
	<description>WEB開発者が使える世界の情報を発信します</description>
	<lastBuildDate>Sat, 23 Jan 2010 13:20:01 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.10</generator>
<site xmlns="com-wordpress:feed-additions:1">122803348</site>	<item>
		<title>SyntaxHighlighterでActionScriptをハイライト表示</title>
		<link>https://blog.verygoodtown.com/2009/12/syntaxhighlighter%e3%81%a7actionscript%e3%82%92%e3%83%8f%e3%82%a4%e3%83%a9%e3%82%a4%e3%83%88%e8%a1%a8%e7%a4%ba/</link>
					<comments>https://blog.verygoodtown.com/2009/12/syntaxhighlighter%e3%81%a7actionscript%e3%82%92%e3%83%8f%e3%82%a4%e3%83%a9%e3%82%a4%e3%83%88%e8%a1%a8%e7%a4%ba/#respond</comments>
		
		<dc:creator><![CDATA[linja]]></dc:creator>
		<pubDate>Wed, 30 Dec 2009 08:11:33 +0000</pubDate>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[SyntaxHighlighter]]></category>
		<guid isPermaLink="false">http://blog.verygoodtown.com/?p=212</guid>

					<description><![CDATA[<p>コードのハイライトにSyntax Highlighter and Code Colorizer for WordPressというプラグインを使用しているのですが、 標準ではActionScriptに対応していないようです [&#8230;]</p>
The post <a href="https://blog.verygoodtown.com/2009/12/syntaxhighlighter%e3%81%a7actionscript%e3%82%92%e3%83%8f%e3%82%a4%e3%83%a9%e3%82%a4%e3%83%88%e8%a1%a8%e7%a4%ba/">SyntaxHighlighterでActionScriptをハイライト表示</a> first appeared on <a href="https://blog.verygoodtown.com">Web活メモ帳</a>.]]></description>
										<content:encoded><![CDATA[<p>コードのハイライトに<a href="http://wordpress.org/extend/plugins/syntax-highlighter-and-code-prettifier/">Syntax Highlighter and Code Colorizer for WordPress</a>というプラグインを使用しているのですが、<br />
標準ではActionScriptに対応していないようですので、対応方法をメモ。</p>
<p>使用している Syntax Highlighter and Code Colorizer for WordPress のバージョンは2.0.296です。</p>
<p>探してみたところ、ActionScriptをハイライト表示できる拡張を作成されている方がいました。</p>
<p>詳細は以下</p>
<p><span id="more-212"></span></p>
<p>yourpalmarkというブログで詳しく設定の仕方が載っていました。</p>
<ul>
<li><a href="http://yourpalmark.com/2009/02/17/as3-syntax-highlighting-with-syntaxhighlighter-20/">AS3 Syntax Highlighting (with SyntaxHighlighter 2.0)</a></li>
</ul>
<h3>ASの拡張ファイルを入手</h3>
<p>まずは<a href="http://yourpalmark.com/downloads/flash/shBrushAS3.zip">You can download my AS3 extension here.</a>というリンクから最新のAS拡張をダウンロードします。</p>
<p><img loading="lazy" src="https://blog.verygoodtown.com/wordpress/wp-content/uploads/syntaxHighlighter-300x122.png" alt="syntaxHighlighter" title="syntaxHighlighter" width="300" height="122" class="alignnone size-medium wp-image-219" srcset="https://blog.verygoodtown.com/wordpress/wp-content/uploads/syntaxHighlighter-300x122.png 300w, https://blog.verygoodtown.com/wordpress/wp-content/uploads/syntaxHighlighter.png 414w" sizes="(max-width: 300px) 100vw, 300px" /><br />
ダウンロードするとscriptsとstylesというフォルダがあるので、上記pluginにある同名のフォルダに設置します。</p>
<p>その後、プラグイン直下のsyntax-highlighter.phpにて言語毎のjavascriptを読み込んでいるので、<br />
設置したshBrushAS3.jsを読み込むよう修正します。</p>
<pre class="brush:js;">
&lt;script&nbsp;type=&quot;text/javascript&quot;&nbsp;src=&quot;&lt;?php&nbsp;echo&nbsp;$current_path;&nbsp;?&gt;scripts/shBrushAS3.js&quot;&gt;&lt;/script&gt;
</pre>
<p>設定は以上です。<br />
本文に載せる際にはbrushの値を&#8217;as&#8217;, &#8216;actionscript&#8217;, &#8216;ActionScript&#8217;, &#8216;as3&#8217;, &#8216;AS3&#8217;が使用できるようです。</p>
<p>これでActionScriptがハイライト表示されるようになりました。</p>
<pre class="brush:as3;">
package {
    public class Main
    {
        public function Main() extends Sprite
        {
            trace("hoge");
        }
    }
}

</pre>
<h3>2010/01/16 追記</h3>
<p>本日プラウグインをアップロードしたら今までのActionScriptのハイライトが効かなくなりました。<br />
「as」というエイリアスが無いと怒られてしまいます。</p>
<p>どうやら、エイリアスを&#8217;actionscript3&#8217;か &#8216;as3&#8217;にすると正常に動作するようです。</p>The post <a href="https://blog.verygoodtown.com/2009/12/syntaxhighlighter%e3%81%a7actionscript%e3%82%92%e3%83%8f%e3%82%a4%e3%83%a9%e3%82%a4%e3%83%88%e8%a1%a8%e7%a4%ba/">SyntaxHighlighterでActionScriptをハイライト表示</a> first appeared on <a href="https://blog.verygoodtown.com">Web活メモ帳</a>.]]></content:encoded>
					
					<wfw:commentRss>https://blog.verygoodtown.com/2009/12/syntaxhighlighter%e3%81%a7actionscript%e3%82%92%e3%83%8f%e3%82%a4%e3%83%a9%e3%82%a4%e3%83%88%e8%a1%a8%e7%a4%ba/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">212</post-id>	</item>
	</channel>
</rss>
