<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.zynthian.org/index.php?action=history&amp;feed=atom&amp;title=Coding_Guidelines</id>
	<title>Coding Guidelines - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.zynthian.org/index.php?action=history&amp;feed=atom&amp;title=Coding_Guidelines"/>
	<link rel="alternate" type="text/html" href="http://wiki.zynthian.org/index.php?title=Coding_Guidelines&amp;action=history"/>
	<updated>2026-11-12T13:07:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.zynthian.org/index.php?title=Coding_Guidelines&amp;diff=16182&amp;oldid=prev</id>
		<title>Riban: /* Formatting */</title>
		<link rel="alternate" type="text/html" href="http://wiki.zynthian.org/index.php?title=Coding_Guidelines&amp;diff=16182&amp;oldid=prev"/>
		<updated>2026-11-12T07:55:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Formatting&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:55, 12 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l123&quot; &gt;Line 123:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 123:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;No formatter or linter is configured, so format by hand and only on the lines you change. Do not run an auto-formatter over a whole file: it would rewrite thousands of lines and bury your change.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;No formatter or linter is configured, so format by hand and only on the lines you change. Do not run an auto-formatter over a whole file: it would rewrite thousands of lines and bury your change.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Indentation.&amp;#039;&amp;#039;&amp;#039; Use 4 spaces, never tabs&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. The Python tree has 70,732 space-indented lines against 991 tab-indented lines, all in five files (&amp;lt;code&amp;gt;zynthian&amp;#039;&amp;#039;engine&amp;#039;&amp;#039;midi&amp;#039;&amp;#039;control.py&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zynthian&amp;#039;&amp;#039;engine&amp;#039;&amp;#039;setbfree.py&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zynthian&amp;#039;&amp;#039;engine&amp;#039;&amp;#039;sysex.py&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zynthian&amp;#039;&amp;#039;ctrldev&amp;#039;&amp;#039;mackiecontrol.py&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;zynthian&amp;#039;&amp;#039;gui_arranger.py&amp;lt;/code&amp;gt;). When you edit one of those, match the surrounding block. C and C++ use spaces too (12,762 lines against 15)&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Indentation.&amp;#039;&amp;#039;&amp;#039; Use 4 spaces, never tabs.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Line length.&amp;#039;&amp;#039;&amp;#039; Nothing is enforced. The median line is 36 characters and the 95th percentile is 86, but 7,927 lines pass 79 and 773 pass 120. Wrap new code at 100 characters.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Line length.&amp;#039;&amp;#039;&amp;#039; Nothing is enforced. The median line is 36 characters and the 95th percentile is 86, but 7,927 lines pass 79 and 773 pass 120. Wrap new code at 100 characters.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Quotes.&amp;#039;&amp;#039;&amp;#039; Double quotes outnumber single quotes roughly two to one. Prefer double quotes for new strings and keep the file&amp;#039;s existing style for short dictionary keys.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Quotes.&amp;#039;&amp;#039;&amp;#039; Double quotes outnumber single quotes roughly two to one. Prefer double quotes for new strings and keep the file&amp;#039;s existing style for short dictionary keys.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key zynthian?hwiki:diff::1.12:old-16181:rev-16182 --&gt;
&lt;/table&gt;</summary>
		<author><name>Riban</name></author>
	</entry>
	<entry>
		<id>http://wiki.zynthian.org/index.php?title=Coding_Guidelines&amp;diff=16181&amp;oldid=prev</id>
		<title>Riban: Created page with &quot;= Zynthian UI (tomita branch) Coding Guidelines =  == About these guidelines ==  These guidelines record how code in the &lt;code&gt;tomita&lt;/code&gt; branch of zynthian-ui is written t...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.zynthian.org/index.php?title=Coding_Guidelines&amp;diff=16181&amp;oldid=prev"/>
		<updated>2026-11-12T07:13:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Zynthian UI (tomita branch) Coding Guidelines =  == About these guidelines ==  These guidelines record how code in the &amp;lt;code&amp;gt;tomita&amp;lt;/code&amp;gt; branch of zynthian-ui is written t...&amp;quot;&lt;/p&gt;
&lt;a href=&quot;http://wiki.zynthian.org/index.php?title=Coding_Guidelines&amp;amp;diff=16181&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Riban</name></author>
	</entry>
</feed>