C# 클래스 WikiFunctions.WikiDiff

This class renders MediaWiki-like HTML diffs
파일 보기 프로젝트 열기: reedy/AutoWikiBrowser 1 사용 예제들

공개 메소드들

메소드 설명
DiffHead ( ) : string

Returns style header, from style.css file if present, else default style

GetDiff ( string leftText, string rightText, int contextLines ) : string

Renders diff

ResetCustomStyles ( ) : void
UndoAddition ( int right ) : string
UndoChange ( int left, int right ) : string
UndoDeletion ( int left, int right ) : string

비공개 메소드들

메소드 설명
ContextHeader ( int left, int right ) : void
ContextLine ( int line ) : void

Renders a context row

LineAdded ( int line ) : void
LineChanged ( int leftLine, int rightLine ) : void
LineDeleted ( int left, int right ) : void
RenderContext ( Diff hunk ) : void
RenderDifference ( Diff hunk ) : void
WhitespaceDiff ( StringBuilder res, Word left, Word right ) : void
WordDiff ( StringBuilder res, Range range, Range otherRange, IList words, IList otherWords ) : void

메소드 상세

DiffHead() 공개 정적인 메소드

Returns style header, from style.css file if present, else default style
public static DiffHead ( ) : string
리턴 string

GetDiff() 공개 메소드

Renders diff
public GetDiff ( string leftText, string rightText, int contextLines ) : string
leftText string Earlier version of the text
rightText string Later version of the text
contextLines int Number of unchanged lines to show around changed ones
리턴 string

ResetCustomStyles() 공개 정적인 메소드

public static ResetCustomStyles ( ) : void
리턴 void

UndoAddition() 공개 메소드

public UndoAddition ( int right ) : string
right int
리턴 string

UndoChange() 공개 메소드

public UndoChange ( int left, int right ) : string
left int
right int
리턴 string

UndoDeletion() 공개 메소드

public UndoDeletion ( int left, int right ) : string
left int
right int
리턴 string