Code blocks in these articles support emphasizing specific lines which
helps to direct a reader's attention.
Here's an example from Deep dive into Minitest:
{% source ruby location="https://github.com/seattlerb/minitest/blob/1f2b1328f286967926a381d7a34e0eadead0722d/lib/minitest.rb#L52-L66"
cssclass=emphasized
hl_lines="1 2 3 4 13 14 15" %}
def self.autorun
at_exit {
next if $! and not ($!.kind_of? SystemExit and $!.success?)
exit_code = nil
at_exit {
@@after_run.reverse_each(&:call)
exit exit_code || false
}
exit_code = Minitest.run ARGV
} unless @@installed_at_exit
@@installed_at_exit = true
end
{% endsource %}
Which renders: