Código vb:
Ver original
Dim FileDialog As New OpenFileDialog FileDialog.Filter = "Archivo JavaScript|*.js" FileDialog.CheckFileExists = True FileDialog.Title = "Importar ModScript" If FileDialog.ShowDialog() = DialogResult.OK Then Dim jssr As New StreamReader(FileDialog.FileName) Dim jslin As String = "" Dim jsarr As New ArrayList() Do jslin = jssr.ReadLine() If Not jslin Is Nothing Then jsarr.Add(jslin) End If Loop Until jslin Is Nothing jssr.Close() Editor.Show() For Each jslin In jsarr Editor.CodeTextBox.Text = jslin Next End If
Porfavor alguien que sepa mucho de utilizar el plugin FastColoredTextBox que me diga porfavor.