This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"args": { | |
"setting": "tab_size", | |
"value": 2 | |
}, | |
"command": "set_setting" | |
}, | |
{ | |
"args": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
First: determine the number of columns, ex.: 12 | |
Second: determine the width of a single (1/12) column using the following formula: | |
scw = (100 – (m * (mc – 1))) / mc | |
Where: | |
scw = single column width | |
m = margin (1.6%) | |
mc = maximum columns (12) | |
Ex.: scw = 6.86666666667% | |
Lastly: use the scw to calculate the rest of the column widths using the following formula: |