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.
marking_20up_20bbc_20basic_20program_20code.txt · Last modified: 2024/01/05 00:21 by 127.0.0.1