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

1--DOC_HIDE_ALL
2--DOC_GEN_IMAGE
3local wibox = require("wibox")
4local gears = {shape = require("gears.shape")}
5local beautiful = require("beautiful")
6
7return {
8 text = "Before",
9 align = "center",
10 valign = "center",
11 widget = wibox.widget.textbox,
12},
13{
14 {
15 text = "After",
16 align = "center",
17 valign = "center",
18 widget = wibox.widget.textbox,
19 },
20 shape = gears.shape.circle,
21 border_width = 5,
22 border_color = "#ff0000",
…lines 23–28 unchanged (6 lines)

After

1--DOC_HIDE_ALL
2--DOC_GEN_IMAGE
3local wibox = require("wibox")
4local gears = {shape = require("gears.shape")}
5local beautiful = require("beautiful")
6
7return {
8 text = "Before",
9 halign = "center",
10 valign = "center",
11 widget = wibox.widget.textbox,
12},
13{
14 {
15 text = "After",
16 halign = "center",
17 valign = "center",
18 widget = wibox.widget.textbox,
19 },
20 shape = gears.shape.circle,
21 border_width = 5,
22 border_color = "#ff0000",
…lines 23–28 unchanged (6 lines)

Before

chunk
comment
-- "--"
comment_content "DOC_HIDE_ALL"
comment
-- "--"
comment_content "DOC_GEN_IMAGE"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "wibox"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "wibox"
" "\""
) ")"
variable_declaration (+22 nodes collapsed)
variable_declaration
local "local"
assignment_statement
variable_list
identifier "beautiful"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "beautiful"
" "\""
) ")"
return_statement
return "return"
expression_list
table_constructor
{ "{"
field
identifier "text"
= "="
string
" "\""
string_content "Before"
" "\""
, ","
field
identifier "align"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "valign"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "widget"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
. "."
identifier "textbox"
, ","
} "}"
, ","
table_constructor
{ "{"
field
table_constructor
{ "{"
field
identifier "text"
= "="
string
" "\""
string_content "After"
" "\""
, ","
field
identifier "align"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "valign"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "widget"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
. "."
identifier "textbox"
, ","
} "}"
, ","
field
identifier "shape"
= "="
dot_index_expression
dot_index_expression
identifier "gears"
. "."
identifier "shape"
. "."
identifier "circle"
, ","
field
identifier "border_width"
= "="
number "5"
, ","
field
identifier "border_color"
= "="
string
" "\""
string_content "#ff0000"
" "\""
, ","
field
identifier "bg"
= "="
dot_index_expression
identifier "beautiful"
. "."
identifier "bg_highlight"
, ","
field
identifier "widget"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "container"
. "."
identifier "background"
} "}"
comment
-- "--"
comment_content "DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:"...

After

chunk
comment
-- "--"
comment_content "DOC_HIDE_ALL"
comment
-- "--"
comment_content "DOC_GEN_IMAGE"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "wibox"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "wibox"
" "\""
) ")"
variable_declaration (+22 nodes collapsed)
variable_declaration
local "local"
assignment_statement
variable_list
identifier "beautiful"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
" "\""
string_content "beautiful"
" "\""
) ")"
return_statement
return "return"
expression_list
table_constructor
{ "{"
field
identifier "text"
= "="
string
" "\""
string_content "Before"
" "\""
, ","
field
identifier "halign"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "valign"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "widget"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
. "."
identifier "textbox"
, ","
} "}"
, ","
table_constructor
{ "{"
field
table_constructor
{ "{"
field
identifier "text"
= "="
string
" "\""
string_content "After"
" "\""
, ","
field
identifier "halign"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "valign"
= "="
string
" "\""
string_content "center"
" "\""
, ","
field
identifier "widget"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "widget"
. "."
identifier "textbox"
, ","
} "}"
, ","
field
identifier "shape"
= "="
dot_index_expression
dot_index_expression
identifier "gears"
. "."
identifier "shape"
. "."
identifier "circle"
, ","
field
identifier "border_width"
= "="
number "5"
, ","
field
identifier "border_color"
= "="
string
" "\""
string_content "#ff0000"
" "\""
, ","
field
identifier "bg"
= "="
dot_index_expression
identifier "beautiful"
. "."
identifier "bg_highlight"
, ","
field
identifier "widget"
= "="
dot_index_expression
dot_index_expression
identifier "wibox"
. "."
identifier "container"
. "."
identifier "background"
} "}"
comment
-- "--"
comment_content "DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:"...