<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3APreformatted_code%2Fdoc</id>
	<title>Template:Preformatted code/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3APreformatted_code%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Preformatted_code/doc&amp;action=history"/>
	<updated>2026-10-31T12:55:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Template:Preformatted_code/doc&amp;diff=115203&amp;oldid=prev</id>
		<title>Wikipedia&gt;Jonesey95: use canonical template names</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Preformatted_code/doc&amp;diff=115203&amp;oldid=prev"/>
		<updated>2026-10-22T16:10:53Z</updated>

		<summary type="html">&lt;p&gt;use canonical template names&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
Wraps short spans of source code (typically programming language keywords) in which line breaks are not allowed. This needs to be used instead of {{tag|code}}, because keywords in some programming languages contain characters that can trigger a line break even after the first character of the keyword.&lt;br /&gt;
&lt;br /&gt;
== Example usage ==&lt;br /&gt;
&lt;br /&gt;
For example, [[Forth (programming language)|FORTH]] word (i.e. command) {{Preformatted code|?BRANCH}} contains a question mark.&lt;br /&gt;
&lt;br /&gt;
Normally, you would write {{Preformatted code|&amp;amp;lt;code&amp;gt;?BRANCH&amp;amp;lt;/code&amp;gt;}} When the web browser sees the question mark near the end of line, the rendering could look like this:&lt;br /&gt;
&lt;br /&gt;
:some text that mentions &amp;lt;code&amp;gt;?&amp;lt;br&amp;gt;BRANCH&amp;lt;/code&amp;gt; rest of the text&lt;br /&gt;
&lt;br /&gt;
Usually, you want to force the question mark to be rendered next to the rest of the FORTH word.&lt;br /&gt;
&lt;br /&gt;
When you use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Preformatted code|?BRANCH}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, the resulting rendering will be never broken into two lines inside the source code.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|code}}, which only provides syntax highlighting, without forbidding line breaks&lt;br /&gt;
* {{tl|codett}}, wrapper for this template that removes background and border styling&lt;br /&gt;
* {{tl|mono}}, monospaced font only&lt;br /&gt;
* {{tl|parameter value}}, monospaced; friendly handling for blank space&lt;br /&gt;
* {{tl|Syntaxhighlight}}&lt;br /&gt;
* {{tl|kbd}}, for keyboard input&lt;br /&gt;
* [[Help:Wiki markup]]&lt;br /&gt;
&lt;br /&gt;
{{Semantic markup templates|show}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!--Categories below this line, please; interwikis at Wikidata--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Programming typing-aid templates]]&lt;br /&gt;
[[Category:Semantic markup templates]]&lt;br /&gt;
[[Category:Wikipedia HTML tag-replacing templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Jonesey95</name></author>
	</entry>
</feed>