KeywordHighlighter 1.0.0

Highlight list of keywords against a string

Install-Package KeywordHighlighter -Version 1.0.0
dotnet add package KeywordHighlighter --version 1.0.0
<PackageReference Include="KeywordHighlighter" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KeywordHighlighter --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
This utility project will help you in matching the list of strings against one string and provide a overall result where all the strings would be matched. This comes in both case sensitive and insensitive. To enable case sensitive match, pass a bool value of true into the constructor.

Eg: Below is a sample.

        *var list = new List<string>();

        list.Add("paP");
        list.Add("APeR");
        list.Add("Y DRY P");
        list.Add("N");

        var highlighter = new KeywordHighlighter(true);

        Console.WriteLine(highlighter.HighlightText(list,originalText, startTag, endTag));*
This utility project will help you in matching the list of strings against one string and provide a overall result where all the strings would be matched. This comes in both case sensitive and insensitive. To enable case sensitive match, pass a bool value of true into the constructor.

Eg: Below is a sample.

        *var list = new List<string>();

        list.Add("paP");
        list.Add("APeR");
        list.Add("Y DRY P");
        list.Add("N");

        var highlighter = new KeywordHighlighter(true);

        Console.WriteLine(highlighter.HighlightText(list,originalText, startTag, endTag));*

Release Notes

Use a list of keyowrds against a string to find the matches and highlight them with your preference of literals. For an instance for html we can use, <b> for starting tag and </b> for ending tag to make the matching literals bold. Also we can have a case sensitive/in sensitive match

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 318 10/8/2017