You haven't posted the problematic code. I guess that you are referring to something like this:
B4X:
Private Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
Dim s As String = $"
Private Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
End Sub
"$
End Sub
The above code will fail to compile because the parser will reject it. It is related to an important parser optimization.
You can do something like:
B4X:
Private Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
Dim s As String = $"
~Private Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
~End Sub
"$
s = RemoveTildes(s)
Log(s)
End Sub
Private Sub RemoveTildes (s As String) As String
Return s.Replace(CRLF & "~", CRLF)
End Sub
This is helpful, but how can we use it as codeview? Can we add more languages?
like JAVA, PHP,...?
With the help of ChatGPT and Grock, I have created a codeview class, and it runs in webview but this example is not like mine and seems better I have attached my class. My question is, which one should I use?