<?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>TQ 试用 WP &#187; wp-syntax</title>
	<atom:link href="http://tq.freehostia.com.freehostia.com/tag/wp-syntax/feed" rel="self" type="application/rss+xml" />
	<link>http://tq.freehostia.com.freehostia.com</link>
	<description>TQ 试用中... ...</description>
	<lastBuildDate>Fri, 19 Mar 2010 06:07:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>测试wp-syntax</title>
		<link>http://tq.freehostia.com.freehostia.com/2009/08/wp-syntax.html</link>
		<comments>http://tq.freehostia.com.freehostia.com/2009/08/wp-syntax.html#comments</comments>
		<pubDate>Sun, 23 Aug 2009 07:36:00 +0000</pubDate>
		<dc:creator>TQ</dc:creator>
				<category><![CDATA[MY 默认分类]]></category>
		<category><![CDATA[wp-syntax]]></category>

		<guid isPermaLink="false">http://tq.freehostia.com.freehostia.com/2009/08/wp-syntax.html</guid>
		<description><![CDATA[Example 1: PHP, no line numbers

&#60;div id=&#34;foo&#34;&#62;
&#60;?php
  function foo&#40;&#41; &#123;
    echo &#34;Hello World!\\n&#34;;
  &#125;
?&#62;
&#60;/div&#62;

Example 2: Java, with line numbers

1
2
3
4
5
public class Hello &#123;
  public... ]]></description>
			<content:encoded><![CDATA[<p>Example 1: PHP, no line numbers</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;foo&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #000000; font-weight: bold;">function</span> foo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Hello World!<span style="color: #000099; font-weight: bold;">\\</span>n&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;</pre></div></div>

<p>Example 2: Java, with line numbers</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Hello <span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Hello World!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Example 3: Ruby, with line numbers starting at 18</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>18
19
20
21
22
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> Example
  <span style="color:#9966CC; font-weight:bold;">def</span> example<span style="color:#006600; font-weight:bold;">&#40;</span>arg1<span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#0000FF; font-weight:bold;">return</span> <span style="color:#996600;">&quot;Hello: &quot;</span> <span style="color:#006600; font-weight:bold;">+</span> arg1.<span style="color:#9900CC;">to_s</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>Example 4: If your code already has html entities escaped, use escaped=&#8221;true&#8221; as an option</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xml<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Hello<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/xml<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="oracle11" style="font-family:monospace;">winks@CCDB<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> name<span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold; text-transform: uppercase;">CEIL</span><span style="color: #66cc66;">&#40;</span>bytes<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">1024</span><span style="color: #66cc66;">/</span><span style="color: #cc66cc;">1024</span><span style="color: #66cc66;">&#41;</span> MB<span style="color: #66cc66;">,</span>status <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> v$datafile;
&nbsp;
NAME                                                                           MB STATUS
<span style="color: #808080; font-style: italic;">---------------------------------------------------------------------- ---------- --------------</span>
<span style="color: #66cc66;">/</span>home<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>ccdb<span style="color: #66cc66;">/</span>system01.dbf                             <span style="color: #cc66cc;">730</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SYSTEM</span>
<span style="color: #66cc66;">/</span>home<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>ccdb<span style="color: #66cc66;">/</span>sysaux01.dbf                            <span style="color: #cc66cc;">1037</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ONLINE</span>
<span style="color: #66cc66;">/</span>home<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>ccdb<span style="color: #66cc66;">/</span>undotbs01.dbf                            <span style="color: #cc66cc;">440</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ONLINE</span>
<span style="color: #66cc66;">/</span>home<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>ccdb<span style="color: #66cc66;">/</span>users01.dbf                                <span style="color: #cc66cc;">5</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ONLINE</span>
<span style="color: #66cc66;">/</span>home<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>ccdb<span style="color: #66cc66;">/</span>example01.dbf                            <span style="color: #cc66cc;">100</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ONLINE</span>
<span style="color: #66cc66;">/</span>home<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>product<span style="color: #66cc66;">/</span>11.1.0<span style="color: #66cc66;">/</span>db_1<span style="color: #66cc66;">/</span>dbs<span style="color: #66cc66;">/</span>USER_DATA_01.DBF                <span style="color: #cc66cc;">5</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ONLINE</span>
<span style="color: #66cc66;">/</span>home<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>product<span style="color: #66cc66;">/</span>11.1.0<span style="color: #66cc66;">/</span>db_1<span style="color: #66cc66;">/</span>dbs<span style="color: #66cc66;">/</span>WINKS_DATA_01.DBF              <span style="color: #cc66cc;">62</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ONLINE</span>
<span style="color: #66cc66;">/</span>home<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>app<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>ccdb<span style="color: #66cc66;">/</span>WINKS_DATA_EN_01.DBF                      <span style="color: #cc66cc;">37</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ONLINE</span>
&nbsp;
已选择<span style="color: #cc66cc;">8</span>行。</pre></div></div>

<p>escaped=&#8221;true&#8221;</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
</pre></td><td class="code"><pre class="oracle11" style="font-family:monospace;">winks@CCDB<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SET</span> autotrace traceonly <span style="color: #993333; font-weight: bold; text-transform: uppercase;">EXPLAIN</span>
winks@CCDB<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> member;
&nbsp;
执行计划
<span style="color: #808080; font-style: italic;">----------------------------------------------------------</span>
<span style="color: #993333; font-weight: bold; text-transform: uppercase;">PLAN</span> hash <span style="color: #993333; font-weight: bold; text-transform: uppercase;">VALUE</span>: <span style="color: #cc66cc;">3441279308</span>
&nbsp;
<span style="color: #808080; font-style: italic;">----------------------------------------------------------------------------</span>
<span style="color: #66cc66;">|</span> Id  <span style="color: #66cc66;">|</span> Operation         <span style="color: #66cc66;">|</span> Name   <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ROWS</span>  <span style="color: #66cc66;">|</span> Bytes <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">COST</span> <span style="color: #66cc66;">&#40;</span>%CPU<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TIME</span>     <span style="color: #66cc66;">|</span>
<span style="color: #808080; font-style: italic;">----------------------------------------------------------------------------</span>
<span style="color: #66cc66;">|</span>   <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> STATEMENT  <span style="color: #66cc66;">|</span>        <span style="color: #66cc66;">|</span>  <span style="color: #cc66cc;">1358</span> <span style="color: #66cc66;">|</span>   224K<span style="color: #66cc66;">|</span>    <span style="color: #cc66cc;">13</span>   <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> 00:00:01 <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">|</span>   <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span>  <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ACCESS</span> FULL<span style="color: #66cc66;">|</span> MEMBER <span style="color: #66cc66;">|</span>  <span style="color: #cc66cc;">1358</span> <span style="color: #66cc66;">|</span>   224K<span style="color: #66cc66;">|</span>    <span style="color: #cc66cc;">13</span>   <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> 00:00:01 <span style="color: #66cc66;">|</span>
<span style="color: #808080; font-style: italic;">----------------------------------------------------------------------------</span></pre></td></tr></table></div>


<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
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;">winks@CCDB<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SET</span> autotrace traceonly statistics
winks@CCDB<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> member_client;
&nbsp;
已选择<span style="color: #cc66cc;">1363</span>行。
&nbsp;
&nbsp;
统计信息
<span style="color: #808080; font-style: italic;">----------------------------------------------------------</span>
          <span style="color: #cc66cc;">1</span>  recursive calls
          <span style="color: #cc66cc;">0</span>  db block gets
        <span style="color: #cc66cc;">149</span>  consistent gets
          <span style="color: #cc66cc;">0</span>  physical reads
          <span style="color: #cc66cc;">0</span>  redo size
     <span style="color: #cc66cc;">380811</span>  bytes sent via SQL<span style="color: #66cc66;">*</span>Net <span style="color: #993333; font-weight: bold;">TO</span> client
       <span style="color: #cc66cc;">1354</span>  bytes received via SQL<span style="color: #66cc66;">*</span>Net <span style="color: #993333; font-weight: bold;">FROM</span> client
         <span style="color: #cc66cc;">92</span>  SQL<span style="color: #66cc66;">*</span>Net roundtrips <span style="color: #993333; font-weight: bold;">TO</span><span style="color: #66cc66;">/</span><span style="color: #993333; font-weight: bold;">FROM</span> client
          <span style="color: #cc66cc;">0</span>  sorts <span style="color: #66cc66;">&#40;</span>memory<span style="color: #66cc66;">&#41;</span>
          <span style="color: #cc66cc;">0</span>  sorts <span style="color: #66cc66;">&#40;</span>disk<span style="color: #66cc66;">&#41;</span>
       <span style="color: #cc66cc;">1363</span>  rows processed</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://tq.freehostia.com.freehostia.com/2009/08/wp-syntax.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
