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

1var x = 10;
2
3// C++-style comment
4
5/*
6 C-Style comment
7 */
…lines 8–12 unchanged (5 lines)

After

1// @target: es2015
2var x = 10;
3
4// C++-style comment
5
6/*
7 C-Style comment
8 */
…lines 9–13 unchanged (5 lines)

Before

program
variable_declaration
var "var"
variable_declarator
identifier "x"
= "="
number "10"
; ";"
comment "// C++-style comment"
comment "/*\r\n C-Style comment\r\n */"
function_declaration
function "function"
identifier "foo"
formal_parameters
( "("
) ")"
statement_block
{ "{"
expression_statement
update_expression
identifier "x"
++ "++"
; ";"
} "}"

After

program
comment "// @target: es2015"
variable_declaration
var "var"
variable_declarator
identifier "x"
= "="
number "10"
; ";"
comment "// C++-style comment"
comment "/*\r\n C-Style comment\r\n */"
function_declaration
function "function"
identifier "foo"
formal_parameters
( "("
) ")"
statement_block
{ "{"
expression_statement
update_expression
identifier "x"
++ "++"
; ";"
} "}"