HI im making a currently making a program called BATCH Studio.Theres just one particular part im stuck with which is changing is changing conditions and loop words to another color. Just like how vb changes the IF and FOR to blue and String. Iv managed to come up with this but doesent really work
Dim intPosition As Integer
Static intStart As Integer
Dim text As String = txtCode.SelectedText
Dim objType As Object
objType = CompareMethod.Text
intPosition = 1
intStart = InStr(intPosition, txtCode.Text, "if", objType)
If intStart > 0 Then
txtCode.SelectionStart = intStart - 1
txtCode.SelectionLength = 2
txtCode.SelectionColor = Color.Blue
End If
any tips on how to fix it would be appreciated
Dim intPosition As Integer
Static intStart As Integer
Dim text As String = txtCode.SelectedText
Dim objType As Object
objType = CompareMethod.Text
intPosition = 1
intStart = InStr(intPosition, txtCode.Text, "if", objType)
If intStart > 0 Then
txtCode.SelectionStart = intStart - 1
txtCode.SelectionLength = 2
txtCode.SelectionColor = Color.Blue
End If
any tips on how to fix it would be appreciated