It took me a while also before I realized that this option existed, so I just wanted to share this information.
regards.
It took me a while also before I realized that this option existed, so I just wanted to share this information.
regards.
(marking as Resolved, since this is just a tip not a problem).
John,
which language did you choose when pasting that codeblock?
It looks very different to what I get when pasting it (language in the ddlb is "powerbuilder").
//345678901234567890
// This comment preceded by a single tab character.
If IsNull(as_customername) Then Return -1
Ah, okay, once you've saved it, it looks exactly the same. :)
I'm using Firefox browser and do get TABS.
regards.
That's a good tip, Miguel. For anyone that has never used this tool, it's helpful that this feature inserts the code sample using a monospaced font and a lightly-shaded background, and it also automatically colors the inserted code in a similar manner as the PowerScript editor, which is nice. You can choose from several other development languages, but PowerBuilder is the default. SQL is not one of the supported languages, unfortunately.
One drawback that everyone needs to be aware that when using the "Insert/edit code sample" tool, each tab character get translated into eight spaces.
Example:
//345678901234567890
// This comment preceded by a single tab character.
If IsNull(as_customername) Then Return -1
You'll see this translation when you paste the code into the dialog that opens up. It's rather annoying... Nobody writes code where a tab character translates into eight spaces.