# Highlight PP-Macros Usage Example

# First Example

We import the PureBASIC example file "`example.pb`" without passing any extra options to Highlight:

    ; PureBASIC 5.60 Example

    For i=5 To 1 Step -1
      TEXT$ = "Iteration number: " + Str(i) + ~"\n\nDo you wish to continue?"
      UserChoice = MessageRequester("Countdown Dialog", TEXT$, #PB_MessageRequester_YesNo | #PB_MessageRequester_Info)
      If UserChoice = #PB_MessageRequester_No
        Break
      EndIf
    Next

# Second Example

Now we import the same file, this time passing some extra options to Highlight in order to show line numbers:

        1 ; PureBASIC 5.60 Example
        2
        3 For i=5 To 1 Step -1
        4   TEXT$ = "Iteration number: " + Str(i) + ~"\n\nDo you wish to continue?"
        5   UserChoice = MessageRequester("Countdown Dialog", TEXT$, #PB_MessageRequester_YesNo | #PB_MessageRequester_Info)
        6   If UserChoice = #PB_MessageRequester_No
        7     Break
        8   EndIf
        9 Next

# Add Color Theme

Now we import Highlight's `edit-purebasic` theme into the document: