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. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
marking_20up_20bbc_20basic_20program_20code.txt · Last modified: 2024/01/05 00:21 by 127.0.0.1