Phil Scott 1d8154f9b0
Introduce MarkupInterpolated and MarkupLineInterpolated extensions (#761)
* Introduce MarkupInterpolated and MarkupLineInterpolated extensions

These new methods enable easily writing markup with a nice and intuitive syntax without having to worry about escaping the markup.

```csharp
string input = args[0];
string output = Process(input);
AnsiConsole.MarkupLineInterpolated($"[blue]{input}[/] -> [green]{output}[/]");

```

The `Interpolated` suffix was inspired by the Entity Framework Core [FromSqlInterpolated][1] method.

[1]: https://docs.microsoft.com/en-us/ef/core/querying/raw-sql#passing-parameters

* Fixing whitespace to match file scoped namespaces

* Adding FromInterpolated helper to Markup widget

Allows automatic handling of interpolated strings to be used on the Markup widget. This would be helpful for people working with Tables and the Tree control who would not be using the MarkupInterpolated methods.

* Documentation for markup interpolated methods.

Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
2022-03-22 22:34:25 +01:00
..
2022-02-14 18:44:25 +01:00
2022-02-14 18:44:25 +01:00
2022-02-22 08:56:27 +01:00
2022-02-20 23:57:06 -05:00
2022-02-14 18:44:25 +01:00
2022-02-14 18:44:25 +01:00
2022-02-16 01:40:47 +01:00
2021-04-24 22:20:59 +02:00
2022-02-14 18:44:25 +01:00
2021-04-05 17:45:29 +02:00
2022-02-14 18:44:25 +01:00
2021-04-24 22:20:59 +02:00
2022-02-14 18:44:25 +01:00
2021-07-15 19:53:01 +02:00
2021-10-10 09:40:09 +02:00
2022-02-22 08:56:27 +01:00