' Gambas class file Private hEditor As Editor Private $bIgnore As Boolean Private $bModified As Boolean Public Sub Form_Open() $bIgnore = True Editor1.Text = File.Load("download.html") Editor1.Flags[Editor.HighlightBraces] = True Editor1.Styles[Highlight.Operator].Color = Color.DarkGreen Editor1.Styles[Highlight.Operator].Bold = True Editor1.Styles[Highlight.String].Color = Color.DarkRed Editor1.Flags[Editor.ShowLineNumbers] = True Editor1.Flags[Editor.NoFolding] = True Editor1.Flags[Editor.ShowCurrentLine] = True Editor2.Flags[Editor.HighlightBraces] = True Editor2.Styles[Highlight.Operator].Color = Color.DarkGreen Editor2.Styles[Highlight.Operator].Bold = True Editor2.Styles[Highlight.String].Color = Color.DarkRed VSplit1.Layout = [1, 0] mnuImmediately_Click End Public Sub Editor1_Highlight() Dim iState As Integer Dim iNextState As Integer Dim iInd As Integer Dim J As Integer Dim sText As String Dim sCar As String Dim iPos As Integer Dim bMarkup As Boolean iState = Highlight.State sText = Highlight.Text 'PRINT "Highlight:";; iState;; sText For iInd = 1 To String.Len(sText) iNextState = iState sCar = String.Mid$(sText, iInd, 1) If bMarkup Then If sCar = ">" Then bMarkup = False iState = Highlight.Keyword iNextState = Highlight.Normal Else If sCar = " " Then iNextState = Highlight.Operator Else If sCar = "=" Then iNextState = Highlight.String Endif Else Select Case iState Case Highlight.Normal If sCar = "<" Then If String.Mid$(sText, iInd, 4) = "