I am making a class available that lets you process text in the ways that PHP processes html.
Its operation is quite simple, so it’s not rocket science. All thanks to being able to embed XojoScript into your application.
Here’s an example input, with the embeded script instructions:
Begin
≤ if not true then ≥
Incorrect
≤ else ≥
Correct
≤ end ≥
And now a loop:
≤ dim i as integer ≥
≤ for i = 1 to LoopLength ≥
Repeated multiple times (this is #≤ Print Str(i) ≥)
≤ next i ≥
Fin
And the result when processed by the XHP class:
Begin
Correct
And now a loop:
Repeated multiple times (this is #1)
Repeated multiple times (this is #2)
Repeated multiple times (this is #3)
Fin
You can find the class here: http://www.tempel.org/RB/XHP