sample of C# Windows form application. TextLineViewer is text file viewer to show list of each line.
using textlineviewer.config when command line parameter is not specified.
TextLineViewer.exe [config-file-path]
format of [config-file-path] is xml.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<configure>
<content encoding="utf-8" path="sample.cs" />
<formats>
<format pattern="^.*ERROR:\s(.*)" format="⚠️ $1" />
<format pattern="^.*TODO:\s(.*)" format="📌 $1" />
</formats>
<action process="test.exe" args="-Text {0} -New" />
</configure>contentelementencodingattribute : attribute value is code-page or code-name.(ref: https://learn.microsoft.com/ja-jp/dotnet/api/system.text.encoding?view=net-7.0#list-of-encodings)pathattribute
formatselement : setting of line format to display.formatelementpatternattributeformatattribute
actionelement : application ofprocessattributeargsattribute