default.txt 705 B

1234567891011121314151617181920212223242526272829
  1. ; PureBASIC 5 - Syntax Highlighting Example
  2. Enumeration Test 3 Step 10
  3. #Constant_One ; Will be 3
  4. #Constant_Two ; Will be 13
  5. EndEnumeration
  6. A.i = #Constant_One
  7. B = A + 3
  8. STRING.s = SomeProcedure("Hello World", 2, #Empty$, #Null$)
  9. ESCAPED_STRING$ = ~"An escaped (\\) string!\nNewline..."
  10. FixedString.s{5} = "12345"
  11. Macro XCase(Type, Text)
  12. Type#Case(Text)
  13. EndMacro
  14. StrangeProcedureCall ("This command is split " +
  15. "over two lines") ; Line continuation example
  16. If B > 3 : X$ = "Concatenation of commands" : Else : X$ = "Using colons" : EndIf
  17. Declare.s Attach(String1$, String2$)
  18. Procedure.s Attach(String1$, String2$)
  19. ProcedureReturn String1$+" "+String2$
  20. EndProcedure