<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Preserve code formatting</title>
	<link>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html</link>
	<description>Oracle Certified Master</description>
	<pubDate>Sun, 07 Sep 2008 06:12:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Brian Tkatch</title>
		<link>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6884</link>
		<pubDate>Tue, 06 May 2008 12:12:26 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6884</guid>
					<description>Oops.

Without code tags:
a	b
With code tags:
&lt;code&gt;
a	b
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Oops.</p>
<p>Without code tags:<br />
a	b<br />
With code tags:<br />
<pre><code>
a&nbsp;&nbsp;b
</code></pre>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brian Tkatch</title>
		<link>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6883</link>
		<pubDate>Tue, 06 May 2008 12:11:25 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6883</guid>
					<description>Copy&#38;paste, silly. :)

For example, i just pressed in "a" then pressed tab then pressed "b". I copied that from Notepad and pasted it here. There is clearly a tab there. In the edit box right now, it shows only one character.

Without code tags:
a	b
With code tags:
[code]
a	b
[/code]</description>
		<content:encoded><![CDATA[<p>Copy&amp;paste, silly. <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For example, i just pressed in &#8220;a&#8221; then pressed tab then pressed &#8220;b&#8221;. I copied that from Notepad and pasted it here. There is clearly a tab there. In the edit box right now, it shows only one character.</p>
<p>Without code tags:<br />
a	b<br />
With code tags:<br />
[code]<br />
a	b<br />
[/code]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6835</link>
		<pubDate>Mon, 05 May 2008 20:02:07 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6835</guid>
					<description>I wonder how you type tabs in comments...</description>
		<content:encoded><![CDATA[<p>I wonder how you type tabs in comments&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brian Tkatch</title>
		<link>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6825</link>
		<pubDate>Mon, 05 May 2008 15:42:11 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6825</guid>
					<description>It does not seem to like tabs. Or maybe my lines are too long.</description>
		<content:encoded><![CDATA[<p>It does not seem to like tabs. Or maybe my lines are too long.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brian Tkatch</title>
		<link>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6824</link>
		<pubDate>Mon, 05 May 2008 15:40:32 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6824</guid>
					<description>&lt;CODE&gt;
SELECT
	CASE WHEN Type = 'C' THEN 'Child'	ELSE 'Parent'      END	"End",
	CASE WHEN Type = 'C' THEN Child_Column	ELSE Parent_Column END	"Column",
	SubStr(Position, 1, 1)						"#",
	CASE WHEN Type = 'C' THEN Parent_Table	ELSE Child_Table   END	"Other Table",
	CASE WHEN Type = 'C' THEN Parent_Column	ELSE Child_Column  END	"Other Column",
	Constraint_Name							"Constraint"
FROM
	(
	 SELECT
		(
		 CASE
		  WHEN	Child_Columns.Table_Name = UPPER('&#38;1') THEN 'C'
		  ELSE 'P'
		 END
		)						Type,
		Constraints.Constraint_Name			Constraint_Name,
		Constraints.R_Constraint_Name			R_Constraint_Name,
		Parent_Columns.Position				Position,
		Substr(Parent_Columns.Table_Name,	1, 30)	Parent_Table,
		Substr(Parent_Columns.Column_Name,	1, 30)	Parent_Column,
		Substr(Child_Columns.Table_Name,	1, 30)	Child_Table,
		Substr(Child_Columns.Column_Name,	1, 30)	Child_Column
	 FROM
		All_Constraints		Constraints,
		All_Cons_Columns	Parent_Columns,
		All_Cons_Columns	Child_Columns
	 WHERE
		UPPER('&#38;1') IN (Parent_Columns.Table_Name, Child_Columns.Table_Name)
		-- Join Parent_Columns to get the COLUMN names.
	  AND	Parent_Columns.Owner			= Constraints.R_Owner
	  AND	Parent_Columns.Constraint_Name		= Constraints.R_Constraint_Name
		-- Join Child_Columns to get the COLUMN names.
	  AND	Child_Columns.Owner			= Constraints.Owner
	  AND	Child_Columns.Constraint_Name		= Constraints.Constraint_Name
	  AND	Child_Columns.Position			= Parent_Columns.Position
	)
ORDER BY
	Type,
	Constraint_Name;
&lt;/CODE&gt;</description>
		<content:encoded><![CDATA[<p><CODE><br />
SELECT<br />
	CASE WHEN Type = &#8216;C&#8217; THEN &#8216;Child&#8217;	ELSE &#8216;Parent&#8217;      END	&#8220;End&#8221;,<br />
	CASE WHEN Type = &#8216;C&#8217; THEN Child_Column	ELSE Parent_Column END	&#8220;Column&#8221;,<br />
	SubStr(Position, 1, 1)						&#8220;#&#8221;,<br />
	CASE WHEN Type = &#8216;C&#8217; THEN Parent_Table	ELSE Child_Table   END	&#8220;Other Table&#8221;,<br />
	CASE WHEN Type = &#8216;C&#8217; THEN Parent_Column	ELSE Child_Column  END	&#8220;Other Column&#8221;,<br />
	Constraint_Name							&#8220;Constraint&#8221;<br />
FROM<br />
	(<br />
	 SELECT<br />
		(<br />
		 CASE<br />
		  WHEN	Child_Columns.Table_Name = UPPER(&#8217;&amp;1&#8242;) THEN &#8216;C&#8217;<br />
		  ELSE &#8216;P&#8217;<br />
		 END<br />
		)						Type,<br />
		Constraints.Constraint_Name			Constraint_Name,<br />
		Constraints.R_Constraint_Name			R_Constraint_Name,<br />
		Parent_Columns.Position				Position,<br />
		Substr(Parent_Columns.Table_Name,	1, 30)	Parent_Table,<br />
		Substr(Parent_Columns.Column_Name,	1, 30)	Parent_Column,<br />
		Substr(Child_Columns.Table_Name,	1, 30)	Child_Table,<br />
		Substr(Child_Columns.Column_Name,	1, 30)	Child_Column<br />
	 FROM<br />
		All_Constraints		Constraints,<br />
		All_Cons_Columns	Parent_Columns,<br />
		All_Cons_Columns	Child_Columns<br />
	 WHERE<br />
		UPPER(&#8217;&amp;1&#8242;) IN (Parent_Columns.Table_Name, Child_Columns.Table_Name)<br />
		&#8211; Join Parent_Columns to get the COLUMN names.<br />
	  AND	Parent_Columns.Owner			= Constraints.R_Owner<br />
	  AND	Parent_Columns.Constraint_Name		= Constraints.R_Constraint_Name<br />
		&#8211; Join Child_Columns to get the COLUMN names.<br />
	  AND	Child_Columns.Owner			= Constraints.Owner<br />
	  AND	Child_Columns.Constraint_Name		= Constraints.Constraint_Name<br />
	  AND	Child_Columns.Position			= Parent_Columns.Position<br />
	)<br />
ORDER BY<br />
	Type,<br />
	Constraint_Name;<br />
</CODE>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6750</link>
		<pubDate>Sun, 04 May 2008 17:00:32 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6750</guid>
					<description>i have a small issue with '\'  I believe

&lt;code&gt;C:WINDOWSSYSTEM32DRIVERSETCHOSTS&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>i have a small issue with &#8216;\&#8217;  I believe</p>
<p><code>C:WINDOWSSYSTEM32DRIVERSETCHOSTS</code>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Marco Gralike</title>
		<link>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6743</link>
		<pubDate>Sun, 04 May 2008 14:57:48 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6743</guid>
					<description>Looks fine 
This is very good, for the first time there is a plugin that doesn't scramble my XML schemata.</description>
		<content:encoded><![CDATA[<p>Looks fine<br />
This is very good, for the first time there is a plugin that doesn&#8217;t scramble my XML schemata.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Marco Gralike</title>
		<link>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6742</link>
		<pubDate>Sun, 04 May 2008 14:52:47 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6742</guid>
					<description>testing XML Schema stuff

&lt;code&gt;
SQL&gt; declare
  2    res boolean;
  3    xmlSchema xmlType := xmlType(
  4  '&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  5  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  6             xmlns:xdb="http://xmlns.oracle.com/xdb"
  7             elementFormDefault="qualified"
  8             attributeFormDefault="unqualified"
  9             xdb:storeVarrayAsTable="true"&gt;
 10    &lt;xs:element name="ROOT" xdb:defaultTable="ROOT_TBL" xdb:maintainDOM="false"&gt;
 11       &lt;xs:annotation&gt;
 12           &lt;xs:documentation&gt;Example XML Schema&lt;/xs:documentation&gt;
 13       &lt;/xs:annotation&gt;
 14       &lt;xs:complexType&gt;
 15          &lt;xs:sequence&gt;
 16              &lt;xs:element name="ID" type="xs:integer" /&gt;
 17              &lt;xs:element ref="INFO" /&gt;
 18          &lt;/xs:sequence&gt;
 19       &lt;/xs:complexType&gt;
 20    &lt;/xs:element&gt;
 21    &lt;xs:element name="INFO"&gt;
 22       &lt;xs:complexType&gt;
 23           &lt;xs:sequence&gt;
 24             &lt;xs:element name="INFO_ID" type="xs:integer" /&gt;
 25             &lt;xs:element name="INFO_CONTENT" /&gt;
 26           &lt;/xs:sequence&gt;
 27       &lt;/xs:complexType&gt;
 28    &lt;/xs:element&gt;
 29  &lt;/xs:schema&gt;'
 30  );
 31  begin
 32    if (dbms_xdb.existsResource(:schemaPath)) then
 33        dbms_xdb.deleteResource(:schemaPath);
 34    end if;
 35    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
 36  end;  
 37  / 

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>testing XML Schema stuff</p>
<p><pre><code>
SQL&gt; declare
&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;res boolean;
&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;xmlSchema xmlType := xmlType(
&nbsp;&nbsp;4&nbsp;&nbsp;&#039;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
&nbsp;&nbsp;5&nbsp;&nbsp;&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
&nbsp;&nbsp;6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns:xdb=&quot;http://xmlns.oracle.com/xdb&quot;
&nbsp;&nbsp;7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elementFormDefault=&quot;qualified&quot;
&nbsp;&nbsp;8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attributeFormDefault=&quot;unqualified&quot;
&nbsp;&nbsp;9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xdb:storeVarrayAsTable=&quot;true&quot;&gt;
 10&nbsp;&nbsp;&nbsp;&nbsp;&lt;xs:element name=&quot;ROOT&quot; xdb:defaultTable=&quot;ROOT_TBL&quot; xdb:maintainDOM=&quot;false&quot;&gt;
 11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:annotation&gt;
 12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:documentation&gt;Example XML Schema&lt;/xs:documentation&gt;
 13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:annotation&gt;
 14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;
 15&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;xs:sequence&gt;
 16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;xs:element name=&quot;ID&quot; type=&quot;xs:integer&quot; /&gt;
 17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;xs:element ref=&quot;INFO&quot; /&gt;
 18&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/xs:sequence&gt;
 19&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;
 20&nbsp;&nbsp;&nbsp;&nbsp;&lt;/xs:element&gt;
 21&nbsp;&nbsp;&nbsp;&nbsp;&lt;xs:element name=&quot;INFO&quot;&gt;
 22&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;
 23&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;
 24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name=&quot;INFO_ID&quot; type=&quot;xs:integer&quot; /&gt;
 25&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name=&quot;INFO_CONTENT&quot; /&gt;
 26&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;
 27&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:complexType&gt;
 28&nbsp;&nbsp;&nbsp;&nbsp;&lt;/xs:element&gt;
 29&nbsp;&nbsp;&lt;/xs:schema&gt;&#039;
 30&nbsp;&nbsp;);
 31&nbsp;&nbsp;begin
 32&nbsp;&nbsp;&nbsp;&nbsp;if (dbms_xdb.existsResource(:schemaPath)) then
 33&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dbms_xdb.deleteResource(:schemaPath);
 34&nbsp;&nbsp;&nbsp;&nbsp;end if;
 35&nbsp;&nbsp;&nbsp;&nbsp;res := dbms_xdb.createResource(:schemaPath,xmlSchema);
 36&nbsp;&nbsp;end;&nbsp;&nbsp;
 37&nbsp;&nbsp;/ 

</code></pre>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Sven Vetter</title>
		<link>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6650</link>
		<pubDate>Sat, 03 May 2008 07:46:06 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6650</guid>
					<description>ok - looks fine.

Prevent spaces, ", '
Now you need only a syntax coloring plugin ;-)

Greetings
 Sven</description>
		<content:encoded><![CDATA[<p>ok - looks fine.</p>
<p>Prevent spaces, &#8220;, &#8216;<br />
Now you need only a syntax coloring plugin <img src='http://laurentschneider.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Greetings<br />
 Sven
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurent Schneider</title>
		<link>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6649</link>
		<pubDate>Sat, 03 May 2008 07:45:16 +0000</pubDate>
		<guid>http://laurentschneider.com/wordpress/2008/05/preserve-code-formatting.html#comment-6649</guid>
					<description>:)</description>
		<content:encoded><![CDATA[<p>:)
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
