# GraffitiDiffViewer
Class Inherits GraffitiWebUIControl
## About
GraffitiDiffViewer is a simple component that allows the visualization of changed lines between two source texts.
## Preview

Previous
Next
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Web
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Enumerations
| Name | Value | Description |
| --- | :---: | --- |
| ViewTypes | SideBySide <br> Inline | Supported view types. |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| HTMLRendered | content as String | (None) | Raised when the requested HTML is rendered for output. |
| Open | (None) | (None) | |
| Shown | (None) | (None) | |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| ToHTML | includeCSS as Boolean = True | (None) | Returns an HTML string of the rendered output. Required Bootstrap 5.x also be loaded in the target document. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| ContextSize | Integer | Nil | The number of lines around a changed line that are shown for context. |
| HighlightChangesInline | Boolean | Nil | When True, changes will be highlighted in line rather than in successive Added/Removed blocks. |
| ShowAttribution | Boolean | Nil | Controls the display as the attribution footer to the Open Source library upon which GraffitiDiffViewer is built. The library is BSD licensed, so you should familiarize yourself with the requirements of the license before disabling the attribution. |
| TextBase | String | Nil | Base text to compare against. |
| TextCompare | String | Nil | Changed text compare against TextBase. |
| TitleBase | String | Nil | Text describing TextBase to the user. |
| TitleCompare | String | Nil | Text describing TextCompare to the user. |
| ViewType | ViewTypes | Nil | Determines how changes are presented to the user. |