<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3APreCode%2Fdoc</id>
	<title>Template:PreCode/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3APreCode%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:PreCode/doc&amp;action=history"/>
	<updated>2026-11-21T04:10:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Template:PreCode/doc&amp;diff=169896&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: updating</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:PreCode/doc&amp;diff=169896&amp;oldid=prev"/>
		<updated>2024-12-13T22:14:43Z</updated>

		<summary type="html">&lt;p&gt;updating&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;
== 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, [[w:Forth (programming language)|FORTH]] word (i.e. command) {{PreCode|?BRANCH}} contains a question mark.&lt;br /&gt;
&lt;br /&gt;
Normally, you would write {{PreCode|&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;{{PreCode|?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 higlighting, 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|param 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;!-- Template categories below this line, please --&amp;gt;&lt;br /&gt;
[[Category:Programming typing-aid templates]]&lt;br /&gt;
[[Category:Semantic markup templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>