Marking up BBC BASIC program code

By JGH, May-2006

Line continuation character (backslash)


When a backslash line continuation character is used at the end of a line in a block of example code, a space must be added after it otherwise it will be interpreted as a WikiText line continuation.

Entering the following Wiki markup:

code format="bb4w"

code

Gives the following document text:

      DEF FNmonth(mon%) \
      \ = MID$("JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember", \
      \ VAL MID$("010816212629333743525965",mon%*2-1,2), \
      \ VAL MID$("785534469788",mon%,1))

Warning: using the Visual Editor to edit Wiki markup with backslashes can completely destroy the layout of any code with backslashes in.