📄 iformatterprovider.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -