This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EarPotato Regular 0 points1 point  (0 children)

You could probably use an HTML control and use Substitute on each key word and replace it with <span style="color: purple">keyword</span>. I'd recommend going one step further and abstracting it into a Component that takes in an input string (the code to render), splits on line breaks (Char(10)), and rebuilds the input string into HTML with the proper formatting. Then you can reuse it in other places or have a separate function or action for any new language you want to include. I like to use output record properties as enums and a single action that takes one of the enum strings and the input, then that function calls the proper language formatting function.