/src/NUnit/UiException/CodeFormatters/ICodeFormatter.cs
C# | 33 lines | 12 code | 3 blank | 18 comment | 0 complexity | 39c10350f7c22c0839be4188a25f5a1a MD5 | raw file
Possible License(s): GPL-2.0
- // ****************************************************************
- // This is free software licensed under the NUnit license. You may
- // obtain a copy of the license at http://nunit.org
- // ****************************************************************
-
- using System;
- using System.Collections.Generic;
- using System.Text;
- using NUnit.UiException.CodeFormatters;
-
- namespace NUnit.UiException.CodeFormatters
- {
- /// <summary>
- /// ICodeFormatter is the interface to make the syntax
- /// coloring of a string for a specific developpment language.
- /// </summary>
- public interface ICodeFormatter
- {
- /// <summary>
- /// The language name handled by this formatter.
- /// Ex: "C#", "Java", "C++" and so on...
- /// </summary>
- string Language { get; }
-
- /// <summary>
- /// Makes the coloring syntax of the given text.
- /// </summary>
- /// <param name="code">The text to be formatted. This
- /// parameter cannot be null.</param>
- /// <returns>A FormattedCode instance.</returns>
- FormattedCode Format(string code);
- }
- }