LotgdFormat 0.6.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package LotgdFormat --version 0.6.2
                    
NuGet\Install-Package LotgdFormat -Version 0.6.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LotgdFormat" Version="0.6.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LotgdFormat" Version="0.6.2" />
                    
Directory.Packages.props
<PackageReference Include="LotgdFormat" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LotgdFormat --version 0.6.2
                    
#r "nuget: LotgdFormat, 0.6.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LotgdFormat@0.6.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LotgdFormat&version=0.6.2
                    
Install as a Cake Addin
#tool nuget:?package=LotgdFormat&version=0.6.2
                    
Install as a Cake Tool

Technical documentation

Principle

The formatter works by first parsing the text into a list of nodes, then rendering each node in turn.

In rendering, it tries to make compliant HTML, but some tags may be wrongly nested in some cases.

`@This is`0 `ban example`b

Becomes

{
	{ ColorNode, Color = "00FF00" }
	{ TextNode,  Text = "This is" }
	{ ColorCloseNode }
	{ TagNode, Tag = "strong" }
	{ TextNode, Text = "An example" }
	{ TagCloseNode, Tag = "strong" }
}

Becomes:

<span class="c26">
this is
</span>
<strong>
An example
</strong>

When handling the `0 code, the formatter has to backtrack to close and reapply reapply non-color formatting for the following node to produce the correct HTML.

`@This `bis an`0 example`b

Becomes

{
	{ ColorNode, Color = "00FF00" }
	{ TextNode,  Text = "This" }
	{ TagNode, Tag = "strong" }
	{ TextNode,  Text = "is an" }
	{ ColorCloseNode }
	{ TagCloseNode, Tag = "strong" }
	{ TagNode, Tag = "strong" }
	{ TextNode, Text = "example" }
	{ TagCloseNode, Tag = "strong" }
}

Becomes <span style="color: #00FF00">This <strong>is an</strong></span> <strong> example</strong>

<span style="color: #00FF00">
This
<strong>
is an
</strong>
</span>
<strong>
example
</strong>
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.15.2 314 3/7/2025
0.15.1 207 11/1/2024
0.15.0 190 10/5/2024
0.14.0 196 7/21/2024
0.13.4 210 4/4/2024
0.13.3 210 4/3/2024
0.13.2 215 3/27/2024
0.13.1 215 3/18/2024
0.13.0 179 3/18/2024
0.12.0 236 2/3/2024
0.11.1 256 1/11/2024
0.11.0 258 11/18/2023
0.10.1 177 11/14/2023
0.10.0 189 11/13/2023
0.9.0 181 10/30/2023
0.8.1 239 9/2/2023
0.7.5 270 8/5/2023
0.7.4 250 7/31/2023
0.7.3 415 12/30/2022
0.7.2 391 12/18/2022
0.7.1 410 12/11/2022
0.7.0 412 12/10/2022
0.6.3 424 12/9/2022
0.6.2 434 12/3/2022
0.6.1 451 12/3/2022
0.6.0 432 12/3/2022
0.5.0 445 12/2/2022