Colors of Horde_Text_Diff_Renderer, etc.

Does it have Horde_Text_Differ_Rendererbuilt-in methods for formatting the output text?

i.e. colors, use css classes? etc.?

+4
source share
1 answer

As you can in the source , Horde simply adds a prefix to the lines in which he sees the differences.

For example, for the added row, it will use:

protected function _added($lines) {        
    return $this->_lines($lines, '> '); // prefix with > 
}

So, you can change this class to add everything you need here, or, better, you can override it with your class, changing only those methods that you need to change, leaving it unchanged.

+1
source

All Articles