extract code from global scala doc