iformatterprovider.cs
来自「YetAnotherForum.Net+ScrewTurnWiki中文完美汉化增」· CS 代码 · 共 58 行
CS
58 行
using System;
using System.Collections.Generic;
using System.Text;
namespace ScrewTurn.Wiki.PluginFramework {
/// <summary>
/// It is the interface that must be implemented in order to create a custom Formatter Provider for ScrewTurn Wiki.
/// </summary>
public interface IFormatterProvider : IProvider {
/// <summary>
/// Specifies whether or not to execute Phase 1.
/// </summary>
bool PerformPhase1 { get; }
/// <summary>
/// Specifies whether or not to execute Phase 2.
/// </summary>
bool PerformPhase2 { get; }
/// <summary>
/// Specifies whether or not to execute Phase 3.
/// </summary>
bool PerformPhase3 { get; }
/// <summary>
/// Performs a Formatting phase.
/// </summary>
/// <param name="raw">The raw content to Format.</param>
/// <param name="context">The Context information.</param>
/// <param name="phase">The Phase.</param>
/// <returns>The Formatted content.</returns>
string Format(string raw, ContextInformation context, FormattingPhase phase);
}
/// <summary>
/// Enumerates formatting Phases.
/// </summary>
public enum FormattingPhase {
/// <summary>
/// Phase 1, performed before the internal formatting step.
/// </summary>
Phase1,
/// <summary>
/// Phase 2, performed after the internal formatting step.
/// </summary>
Phase2,
/// <summary>
/// Phase 3, performed before sending the page content to the client.
/// </summary>
Phase3
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?