Source for file inline.php
Documentation is available at inline.php
* "Inline" diff renderer.
* This class renders diffs in the Wiki-style "inline" format.
* $Horde: framework/Text_Diff/Diff/Renderer/inline.php,v 1.3 2004/10/13 09:30:20 jan Exp $
* @author Ciprian Popovici
* Number of leading context "lines" to preserve.
var $_leading_context_lines = 10000;
* Number of trailing context "lines" to preserve.
var $_trailing_context_lines = 10000;
* Prefix for inserted text.
var $_ins_prefix = '<ins>';
* Suffix for inserted text.
var $_ins_suffix = '</ins>';
* Prefix for deleted text.
var $_del_prefix = '<del>';
* Suffix for deleted text.
var $_del_suffix = '</del>';
* Header for each change block.
* What are we currently splitting on? Used to recurse to show word-level
var $_split_level = 'lines';
function _lines ($lines, $prefix = ' ')
if ($this->_split_level == 'words') {
function _blockHeader ($xbeg, $xlen, $ybeg, $ylen)
return $this->_block_header;
function _startBlock ($header)
function _deleted ($lines)
function _changed ($orig, $final)
/* If we've already split on words, don't try to do so again - just
if ($this->_split_level == 'words') {
/* Pad to make sure we can split on word boundaries. */
/* Non-printing newline marker. */
/* Create the diff, splitting on word boundaries (loosely defined as
/* Get the diff in inline format.
* FIXME: should propogate other parameters here too. */
/* Restore newlines and display the result. */
Documentation generated on Mon, 11 Mar 2019 13:56:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|