User Tools

Site Tools


marking_20up_20bbc_20basic_20program_20code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

marking_20up_20bbc_20basic_20program_20code [2018/03/31 13:19] (current)
Line 1: Line 1:
 +=====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: 2018/03/31 13:19 (external edit)