add some more formatting options

This commit is contained in:
javl
2026-08-14 18:42:33 +02:00
parent 70153e6a8f
commit cf74b95ae9
2 changed files with 48 additions and 56 deletions
+14 -11
View File
@@ -287,22 +287,25 @@
<div class="table-cell">
<input id="bitswap" type="checkbox" onchange="updateBoolean('bitswap')">
<label for="bitswap">swap</label>
<i class="note">Swap between MSB and LSB. Useful when working with the u8g2 library.</i>
</div>
</div>
<div class="table-row">
<div class="table-cell"></div>
<div class="table-cell">
<i class="note">Useful when working with the u8g2 library.</i>
</div>
</div>
<div class="table-row" id="remove-zeroes-commas-container">
<div class="table-row" id="prefix-separator-container">
<div class="table-cell"><label>Extra formatting options:</label></div>
<div class="table-cell">
<input id="removeZeroesCommas" type="checkbox" onchange="updateBoolean('removeZeroesCommas')"/>
<label for="removeZeroesCommas">Remove '0x' and commas from output</label>
<div class="sub-field">
<input id="outputComments" type="checkbox" checked onchange="updateBoolean('outputComments')">
<label for="outputComments">Add comments to code output</label>
</div>
<div class="sub-field">
<label for="prefix" class="sub-field-label">Byte prefix:</label>
<input id="prefix" class="size-input" type="text" value="0x" oninput="updateString('prefix')"/>
</div>
<div class="sub-field">
<label for="separator" class="sub-field-label">Separator between bytes:</label>
<input id="separator" class="size-input" type="text" value=", " oninput="updateString('separator')"/>
</div>
</div>
</div>
</div>