プログラムの魔女の色をテキストの別の部分(メモ帳++など)にしましたが、問題があります。
これはClass1のコードの一部です
Public Shared Function get_c_html()
Dim html_words As New List(Of String) From {"<html>", "<title>", "<b>" _
, "</b>", "<u>", "</u>", "<i>", "</i>", "<sub>", "</sub>", "<sup>", "</sup>", "<a href" _
, "</a>", "<body>", "</body>", "<head>", "</head>", "</font>", "<font>", "<div", "</div", "<title>" _
, "</title>", "<img", "/>", "<link", "<br>", "<ul>", "</ul>", "<li>", "</li>" _
, "<table>", "</table>", "<tr>", "</tr>", "<td>", "</td>", "<meta>", "</meta>" _
, "meta", "<background>"}
Dim icountMatch As Integer = 0
For Each blue As String In html_words
icountMatch = HighlightWords(Form1.rchtml, blue, Color.Blue)
Next
Return 0
End Function
プログラムは正常に動作し、テキストを強調表示しますが、html_words に「/html」を追加するとプログラムが起動しません。
別のパブリック共有関数を追加しようとしましたが、同じ「エラー」が発生しました。