<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=Entering_Code_into_the_Wiki</id>
	<title>Entering Code into the Wiki - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=Entering_Code_into_the_Wiki"/>
	<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Entering_Code_into_the_Wiki&amp;action=history"/>
	<updated>2026-12-04T08:35:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Entering_Code_into_the_Wiki&amp;diff=51930&amp;oldid=prev</id>
		<title>Andrew Branscom: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Entering_Code_into_the_Wiki&amp;diff=51930&amp;oldid=prev"/>
		<updated>2025-02-16T02:51:10Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:51, 15 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Entering_Code_into_the_Wiki&amp;diff=51929&amp;oldid=prev</id>
		<title>Andrew Branscom: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Entering_Code_into_the_Wiki&amp;diff=51929&amp;oldid=prev"/>
		<updated>2024-06-03T04:55:30Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:55, 2 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Entering_Code_into_the_Wiki&amp;diff=51928&amp;oldid=prev</id>
		<title>Andrew Branscom at 03:36, 30 July 2016</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Entering_Code_into_the_Wiki&amp;diff=51928&amp;oldid=prev"/>
		<updated>2016-07-30T03:36:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;For constancy through out the Wiki, whenever entering SCI code into the Wiki, please format any code like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sci&amp;quot; class=&amp;quot;cs&amp;quot;&amp;gt;code goes here.&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which will result in this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sci&amp;quot; class=&amp;quot;cs&amp;quot;&amp;gt;code goes here.&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Syntax highlighting will automatically be added:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sci&amp;quot; class=&amp;quot;cs&amp;quot;&amp;gt;&lt;br /&gt;
/******************************************************************************&lt;br /&gt;
 SCI Template Game&lt;br /&gt;
 By Brian Provinciano&lt;br /&gt;
 ******************************************************************************&lt;br /&gt;
 rev.sc&lt;br /&gt;
 Contains a cycle class for reverse animation. &lt;br /&gt;
 ******************************************************************************/&lt;br /&gt;
(include &amp;quot;sci.sh&amp;quot;)&lt;br /&gt;
(include &amp;quot;game.sh&amp;quot;)&lt;br /&gt;
/******************************************************************************/&lt;br /&gt;
(script REV_SCRIPT)&lt;br /&gt;
/******************************************************************************/&lt;br /&gt;
(use &amp;quot;cycle&amp;quot;)&lt;br /&gt;
/******************************************************************************/&lt;br /&gt;
(class Rev of Cycle&lt;br /&gt;
	(properties&lt;br /&gt;
		client 0&lt;br /&gt;
		caller 0&lt;br /&gt;
		cycleDir cdBACKWARD&lt;br /&gt;
		cycleCnt 0&lt;br /&gt;
		completed 0&lt;br /&gt;
	)&lt;br /&gt;
	(method (doit)&lt;br /&gt;
		(var nCel)&lt;br /&gt;
		= nCel (self:nextCel)&lt;br /&gt;
		(if(&amp;lt; nCel 0)&lt;br /&gt;
		    (self:cycleDone())&lt;br /&gt;
		)(else&lt;br /&gt;
			(send client:cel(nCel))&lt;br /&gt;
		)&lt;br /&gt;
	)&lt;br /&gt;
	(method (cycleDone)&lt;br /&gt;
		(send client:cel( (send client:lastCel) ) )&lt;br /&gt;
	)&lt;br /&gt;
)&lt;br /&gt;
/******************************************************************************/&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You use it in lieu of &amp;#039;pre&amp;#039; tags. Because it acts like &amp;amp;lt;pre&amp;amp;gt; tags it will preserve the code&amp;#039;s formatting without having to add nonbreaking spaces (&amp;#039;&amp;#039;&amp;#039;&amp;amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039;) or line breaks tags (&amp;#039;&amp;#039;&amp;#039;&amp;amp;lt;br /&amp;amp;gt;&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
This will make the code &amp;#039;&amp;#039;much&amp;#039;&amp;#039; more readable while maintaining/editing it. Other language syntax highlighting can be used if the language is changed in the code in the syntaxhighlight tag. For example, to use C++ highlighting you would change it to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a list of other language codes, see [[Supported_Syntax_Highlight_Languages|this table]].&lt;br /&gt;
&lt;br /&gt;
As usual, you can experiment with it on the [[Test_page|Test page]].&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
[[category:Wiki Help‏‎]]&lt;br /&gt;
[[category:Formatting Help]]&lt;/div&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
</feed>