<?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"
	>

<channel>
	<title>DDBC Blogs / e-Portfolios / e-Journals</title>
	<atom:link href="http://blogs.ddbc.edu.tw/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.ddbc.edu.tw</link>
	<description>Home site for DDBC Blogs / e-Portfolios / e-Journals</description>
	<pubDate>Thu, 02 Oct 2008 09:28:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>syntax highlighting</title>
		<link>http://blogs.ddbc.edu.tw/blog/2008/09/08/syntax-highlighting/</link>
		<comments>http://blogs.ddbc.edu.tw/blog/2008/09/08/syntax-highlighting/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 06:12:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Help]]></category>

		<guid isPermaLink="false">http://blogs.ddbc.edu.tw/?p=6</guid>
		<description><![CDATA[You can use tags to style sourcecode.  e.g.

&#91;sourcecode language='php'&#93;
code here
&#91;/sourcecode&#93;


$wgExtensionCredits[&#039;parserhook&#039;][] = array (
&#039;name&#039; =&#62; &#039;swAuthJoomla&#039;,
&#039;author&#039; =&#62; &#039;Simon&#039;,
&#039;url&#039; =&#62; &#039;http://www.ddbc.edu.tw&#039;,
);

require_once ( &#039;AuthPlugin.php&#039; );
class swAuthJoomla extends AuthPlugin
{

/**
* Establish database connection
* and return connection object
*
* @return Object Database
*/
private function connectToDB()
{
$db = &#38;amp; Database :: newFromParams(
$GLOBALS[&#039;swAuthJoomla_MySQL_Host&#039;],
$GLOBALS[&#039;swAuthJoomla_MySQL_Username&#039;],
$GLOBALS[&#039;swAuthJoomla_MySQL_Password&#039;],
$GLOBALS[&#039;swAuthJoomla_MySQL_Database&#039;]);

Supported languages are as follows (alternative keywords are given too):
* Bash &#8212; `bash`, `sh`
* [...]]]></description>
			<content:encoded><![CDATA[<p>You can use tags to style sourcecode.  e.g.</p>
<p><code><br />
&#91;sourcecode language='php'&#93;<br />
code here<br />
&#91;/sourcecode&#93;<br />
</code></p>
<pre class="syntax-highlight:php">
$wgExtensionCredits[&#039;parserhook&#039;][] = array (
&#039;name&#039; =&gt; &#039;swAuthJoomla&#039;,
&#039;author&#039; =&gt; &#039;Simon&#039;,
&#039;url&#039; =&gt; &#039;http://www.ddbc.edu.tw&#039;,
);

require_once ( &#039;AuthPlugin.php&#039; );
class swAuthJoomla extends AuthPlugin
{

/**
* Establish database connection
* and return connection object
*
* @return Object Database
*/
private function connectToDB()
{
$db = &amp;amp; Database :: newFromParams(
$GLOBALS[&#039;swAuthJoomla_MySQL_Host&#039;],
$GLOBALS[&#039;swAuthJoomla_MySQL_Username&#039;],
$GLOBALS[&#039;swAuthJoomla_MySQL_Password&#039;],
$GLOBALS[&#039;swAuthJoomla_MySQL_Database&#039;]);
</pre>
<p>Supported languages are as follows (alternative keywords are given too):</p>
<p>* Bash &#8212; `bash`, `sh`<br />
* C++ &#8212; `cpp`, `c`, `c++`<br />
* C# &#8212; `c#`, `c-sharp`, `csharp`<br />
* CSS &#8212; `css`<br />
* Delphi &#8212; `delphi`, `pascal`<br />
* Java &#8212; `java`<br />
* JavaScript &#8212; `js`, `jscript`, `javascript`<br />
* PHP &#8212; `php`<br />
* Python &#8212; `py`, `python`<br />
* Ruby &#8212; `rb`, `ruby`, `rails`, `ror`<br />
* SQL &#8212; `sql`<br />
* VB &#8212; `vb`, `vb.net`<br />
* XML/HTML &#8212; `xml`, `html`, `xhtml`, `xslt`</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.ddbc.edu.tw/blog/2008/09/08/syntax-highlighting/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
