add colorization to best practice

This commit is contained in:
christianbraeunlich 2022-03-19 21:45:41 +01:00
parent 4fbfc28c9e
commit bd7ea0e118
20 changed files with 58 additions and 59 deletions

View file

@ -10,26 +10,26 @@ _Created by Microsoft, Described by waldo_
A line of code should not have more than one statement.
## Bad code
## <span style="color:red">Bad code</span>
```al
if OppEntry.Find('-') then exit;
```
## Good code
## <span style="color:lime">Good code</span>
```al
if OppEntry.Find('-') then
exit;
```
## Bad code
## <span style="color:red">Bad code</span>
```al
TotalCost += Cost; TotalAmt += Amt;
```
## Good code
## <span style="color:lime">Good code</span>
```al
TotalCost += Cost;