Every definition starts at a new line. Definitions can wrap as the colorForth editor does.
macro
drop
ad
1, ;
over
dup
44686
3, ;
0
dup
c031
2, ;
if
74
2, here ;
-if
79
2, here ;
a
dup
c28b
2, ;
a!
?lit if
ba
1, , ; then
d08b
2,
drop
;
@
85048b
3, 0 , ;
!
a!
950489
3, 0,
drop
;
nop
90
1, ;
-
d0f7
2, ;
2*
e0d1
2, ;
2/
f8d1
2, ;
push
50
1,
drop
;
pop
dup
58
1, ;
u+
?lit if
681
2, , ; then
446013
3,
drop
;
?
?lit
a9
1, , ;
26 load forth 28 load 30 load mark empty
Text comments look like:
text
textcapitalized
textallcaps
Netscape 4.76/Linux doesn't scale and doesn't show the background color properly.
Text only browsers like lynx and w3m show no styling at all.
word
becomes : word
word
becomes wordnumber
and number
become $numberword
becomes word outside of definitions
and [ word ] insideword
becomes [word]word
becomes variable word numbercomment
becomes ( comment )macro : drop $ad 1, ; : over [dup] $44686 3, ; : 0 [dup] $c031 2, ; : if $74 2, here ; : -if $79 2, here ; : a [dup] $c28b 2, ; : a! ?lit if $ba 1, , ; then $d08b 2, drop ; : @ $85048b 3, 0 , ; : ! a! $950489 3, 0, drop ; : nop $90 1, ; : - $d0f7 2, ; : 2* $e0d1 2, ; : 2/ $f8d1 2, ; : push $50 1, drop ; : pop dup $58 1, ; : u+ ?lit if $681 2, , ; then $446013 3, drop ; : ? ?lit $a9 1, , ; 26 load forth 28 load 30 load mark empty
variable x 0 : incx 1 [ x ] +! ; : buff $900000 ; : size [ buff 8 + ] @ ;