User Tools

Site Tools


marking_20up_20bbc_20basic_20program_20code

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"

  • DEF FNmonth(mon%) \space
  • \ = MID$(“JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember”, \space
  • \ VAL MID$(“010816212629333743525965”,mon%*2-1,2), \space
  • \ VAL MID$(“785534469788”,mon%,1))

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.

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information
marking_20up_20bbc_20basic_20program_20code.txt · Last modified: 2018/03/31 13:19 (external edit)