Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–93 unchanged (93 lines)
94 void insert(Token.Character characterToken) {
95 Node node = new TextNode(characterToken.getData(), baseUri);
96 insertNode(node);
97 }
98
99 void insert(Token.Doctype d) {
100 DocumentType doctypeNode = new DocumentType(settings.normalizeTag(d.getName()), d.getPublicIdentifier(), d.getSystemIdentifier(), baseUri);
101 insertNode(doctypeNode);
102 }
103
104 /**
105 * If the stack contains an element with this tag's name, pop up the stack to remove the first occurrence. If not
106 * found, skips.
…lines 107–138 unchanged (32 lines)

After

…lines 1–93 unchanged (93 lines)
94 void insert(Token.Character characterToken) {
95 Node node = new TextNode(characterToken.getData(), baseUri);
96 insertNode(node);
97 }
98
99 void insert(Token.Doctype d) {
100 DocumentType doctypeNode = new DocumentType(settings.normalizeTag(d.getName()), d.getPubSysKey(), d.getPublicIdentifier(), d.getSystemIdentifier(), baseUri);
101 insertNode(doctypeNode);
102 }
103
104 /**
105 * If the stack contains an element with this tag's name, pop up the stack to remove the first occurrence. If not
106 * found, skips.
…lines 107–138 unchanged (32 lines)

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "parser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "Jsoup"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "helper"
. "."
identifier "Validate"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "nodes"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
block_comment "/**\n * Use the {@code XmlTreeBuilder} when you want to parse"...
class_declaration
modifiers
public "public"
class "class"
identifier "XmlTreeBuilder"
superclass
extends "extends"
type_identifier "TreeBuilder"
class_body
{ "{"
method_declaration
type_identifier "ParseSettings"
identifier "defaultSettings"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
identifier "ParseSettings"
. "."
identifier "preserveCase"
; ";"
} "}"
method_declaration (+40 nodes collapsed)
method_declaration (+81 nodes collapsed)
method_declaration (+176 nodes collapsed)
method_declaration (+28 nodes collapsed)
method_declaration (+139 nodes collapsed)
method_declaration (+260 nodes collapsed)
method_declaration (+44 nodes collapsed)
method_declaration
void_type "void"
identifier "insert"
formal_parameters
( "("
formal_parameter
scoped_type_identifier
type_identifier "Token"
. "."
type_identifier "Doctype"
identifier "d"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "DocumentType"
variable_declarator
identifier "doctypeNode"
= "="
object_creation_expression
new "new"
type_identifier "DocumentType"
argument_list
( "("
method_invocation
identifier "settings"
. "."
identifier "normalizeTag"
argument_list
( "("
method_invocation
identifier "d"
. "."
identifier "getName"
argument_list
( "("
) ")"
) ")"
, ","
method_invocation
identifier "d"
. "."
identifier "getPublicIdentifier"
argument_list
( "("
) ")"
, ","
method_invocation
identifier "d"
. "."
identifier "getSystemIdentifier"
argument_list
( "("
) ")"
, ","
identifier "baseUri"
) ")"
; ";"
expression_statement
method_invocation
identifier "insertNode"
argument_list
( "("
identifier "doctypeNode"
) ")"
; ";"
} "}"
block_comment "/**\n * If the stack contains an element with this tag's "...
method_declaration (+195 nodes collapsed)
method_declaration (+60 nodes collapsed)
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "parser"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "Jsoup"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "helper"
. "."
identifier "Validate"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jsoup"
. "."
identifier "nodes"
. "."
asterisk
* "*"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
block_comment "/**\n * Use the {@code XmlTreeBuilder} when you want to parse"...
class_declaration
modifiers
public "public"
class "class"
identifier "XmlTreeBuilder"
superclass
extends "extends"
type_identifier "TreeBuilder"
class_body
{ "{"
method_declaration
type_identifier "ParseSettings"
identifier "defaultSettings"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
identifier "ParseSettings"
. "."
identifier "preserveCase"
; ";"
} "}"
method_declaration (+40 nodes collapsed)
method_declaration (+81 nodes collapsed)
method_declaration (+176 nodes collapsed)
method_declaration (+28 nodes collapsed)
method_declaration (+139 nodes collapsed)
method_declaration (+260 nodes collapsed)
method_declaration (+44 nodes collapsed)
method_declaration
void_type "void"
identifier "insert"
formal_parameters
( "("
formal_parameter
scoped_type_identifier
type_identifier "Token"
. "."
type_identifier "Doctype"
identifier "d"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "DocumentType"
variable_declarator
identifier "doctypeNode"
= "="
object_creation_expression
new "new"
type_identifier "DocumentType"
argument_list
( "("
method_invocation
identifier "settings"
. "."
identifier "normalizeTag"
argument_list
( "("
method_invocation
identifier "d"
. "."
identifier "getName"
argument_list
( "("
) ")"
) ")"
, ","
method_invocation
identifier "d"
. "."
identifier "getPubSysKey"
argument_list
( "("
) ")"
, ","
method_invocation
identifier "d"
. "."
identifier "getPublicIdentifier"
argument_list
( "("
) ")"
, ","
method_invocation
identifier "d"
. "."
identifier "getSystemIdentifier"
argument_list
( "("
) ")"
, ","
identifier "baseUri"
) ")"
; ";"
expression_statement
method_invocation
identifier "insertNode"
argument_list
( "("
identifier "doctypeNode"
) ")"
; ";"
} "}"
block_comment "/**\n * If the stack contains an element with this tag's "...
method_declaration (+195 nodes collapsed)
method_declaration (+60 nodes collapsed)
} "}"