►
From YouTube: Create:Editor - Code block highlight selection
A
All
right,
so
this
video
is
talking
about
how
we
might
handle
code
blocks
and
selecting
the
syntax
highlighting
so
here,
I'm
starting
off
with.
A
With
the
themes
and
going
on
now,
I
was
thinking
about
what
that
would
look
like
with
the
source
editor
or
with
the
content.
Editor.
Sorry,
so
first
kind
of
went
with
this
approach,
where
essentially
taking
the
existing
rendered
part
and
slapping
on
a
header
that
would
allow
you
to
switch
type.
There's
this
copy
here
around
code
block,
but
then
down
here
in
this
triple
dots
would
be
like
actions
to
delete
or
delete
would
be
the
main
one.
A
But
that's
other
actions
that
might
happen
in
the
future
would
be
there
as
well,
so
to
simplify
that
a
little
bit
more,
I
thought
about
having
like
a
drop
down,
that's
really
blended
into
the
page,
and
so
here
we
take
the
drop
down
component
and
we
somehow
style
it
so
that
it's
white.
A
I
think
that's
interesting.
I
think,
there's
cases
where
you
have
different
themes.
For
example,
if
you
use
the
solarize
one
it'll
be
yellow,
so
you
know
we'll
probably
have
to
have
logic
to
then
toggle
the
different
colors
of
what
color
we
want
to
make
this
so
that
it
stands
out
properly,
so
experimenting
some
more
and
then
I
kind
of
landed
upon
this.
A
Where
it'll
be
the
drop
down
in
its
component
state
like
component
version
and
to
make
this
kind
of
work,
we
give
the
code
block
a
little
bit
of
padding
on
top
and
bottom
so
that
the
transitions
between
when
it's
not
active
or
focused
or
hovered,
and
when
it's
hovered
there's
not
a
lot
of
screen
movement.
A
A
Yeah,
so
just
recapping,
where
we're
starting
from,
is
taking
a
look
at
the
code.
This
is
in
the
source
editor.
A
If
we
had
the
extra
space,
it
would
actually
look
like
where
we're
heading
with
this
design
and
there's
an
extra
pad
a
little
bit
of
padding
at
the
top
and
bottom
a
little
bit
of
padding
at
the
top
and
bottom,
but
in
this
scenario,
that
top
bottom
without
any
borders
or
separation
lines
allows
us
to
be
tight
with
the
spacing
here
without
making
it
look
too
too
tight,
because
there's
not
an
extra
container
around
this
area
visually.
So
it
just
looks
like
it's
part
of
it.
A
I
think
we
can
look
at
the
implementation
and
see
how
that
might
look
with
this
in
encode
and
see
how
it
actually
looks
versus
in
design.
But
this
is,
I
think,
a
good
approach
for
handling
code
blocks,
especially
changing
the
type
that
we
have
here,
and
the
type
that
we
have
here
should
be
matched
to
what
exists
in
highlight.js.
So
if
we
go
to
highlight.js.
A
There's
like
32
common
languages
that
are
here.
Maybe
we
start
off
with
that
as
the
drop
down,
but
I'm
not
100
sure
how
it
all
gets
picked
up
by
highlight
but
yeah,
and
maybe
we
just
start
off
with
whatever
we
support
in
this
area,
but
I'll
leave
that
further
discussion
thanks,
bye.