Skip to content

Commit fec3f92

Browse files
committed
docs: colorize examples
1 parent 71ef3a7 commit fec3f92

11 files changed

Lines changed: 29 additions & 42 deletions

docs/examples/4inarow.bas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# 4 in a Row
22

3-
Program: 4inarow.bas
3+
## Program: 4inarow.bas
44

55
This program first appeared in MicroHobby ZX Spectrum Spanish magazine. It has a
66
nice AI in BASIC that plays smartly against the human in only 16Kb!
77

8-
```
8+
```basic
99
0 REM From MicroHOBBY magazine, Num. 18, page 27 :')
1010
1 BORDER 1: PAPER 1: INK 7: CLS : PRINT AT 10,10; FLASH 1;"STOP THE TAPE": PAUSE 200
1111
5 DIM M(8,6): DIM p,pp,n as FLOAT

docs/examples/circle.bas.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# Circle.Bas
22

3-
```
4-
Program: circle.bas
5-
```
3+
## Program: circle.bas
64

7-
```
5+
6+
```basic
87
REM Sample circle drawing without using the CIRCLE command
98
109
DIM i, r, x, y, q as FLOAT

docs/examples/clock.bas.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Clock.Bas
22

3-
```
4-
Program: clock.bas
5-
```
6-
```
3+
## Program: clock.bas
4+
5+
```basic
76
REM From the ZX Spectrum MANUAL
87
REM A Clock program
98

docs/examples/clock2.bas.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Clock2.Bas
22

3-
```
4-
Program: clock2.bas
5-
```
6-
```
3+
## Program: clock2.bas
4+
5+
```basic
76
REM From the ZX Spectrum MANUAL
87
REM A Clock program
98

docs/examples/colors.bas.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Colors.bas
22

3-
```
4-
Program: colors.bas
5-
```
6-
```
3+
## Program: colors.bas
4+
5+
```basic
76
REM From the ZX Spectrum 48K Manual
87
98
DIM m, n, c AS BYTE

docs/examples/fact.bas.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Fact.bas
22

3-
```
4-
Program: fact.bas
5-
```
6-
```
3+
## Program: fact.bas
4+
5+
```vbnet
76
REM Factorial recursive test
87

98
function fact(x as ulong) as ulong

docs/examples/flag.bas.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Flag.bas
22

3-
```
4-
Program: flag.bas
5-
```
3+
## Program: flag.bas
64

7-
```
5+
```basic
86
5 REM union flag (from the ZX Spectrum Manual)
97
108
7 DIM n AS UInteger: REM Needed to avoid overflow at line 530

docs/examples/fractal.bas.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Fractal.bas
22

3-
```
4-
Program: fractal.bas by @Britlion
5-
```
3+
## Program: fractal.bas
4+
by @Britlion
65

76

8-
```
7+
```vbnet
98
# define width 256
109
# define height 192
1110

docs/examples/freregustav.bas.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# FrereGustav.bas
22

3-
```
4-
Program: freregustav.bas
5-
```
6-
```
3+
## Program: freregustav.bas
4+
5+
```basic
76
REM Frere Gustav, from the ZX Spectrum 48K Manual, Chapter 19
87
98
PRINT "Frere Gustav"

docs/examples/lines.bas.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Lines.bas
22

3-
```
4-
Program: lines.bas
5-
```
3+
## Program: lines.bas
64

7-
```
5+
```basic
86
5 REM From the ZX Spectrum manual on Drawing primitives
97
6 DIM x1, y1, x2, y2, c as Integer
108

0 commit comments

Comments
 (0)