added logic to highlight enclosing blocks in the examples