Highlight.Purge (gb.eval)
Static Function Purge ( Code As String [ , Comment As Boolean, String As Boolean ] ) As String
Removes comments and/or strings from a Gambas code line.
-
If Comment is FALSE, then the contents of the comments are replaced by spaces. Otherwise, they are kept unchanged.
-
If String is FALSE, then the contents of the strings are replaced by spaces. Otherwise, they are kept unchanged.
By default, both comments and strings are removed.