def visit_hcb_html(self, node):
 global HCB_COUNTER
 HCB_COUNTER += 1
 try:
  self.visit_literal_block(node)
 except nodes.SkipNode:
  pass
 code_block = self.body[(-1)]
 fill_header = {'divname': 'hiddencodeblock{0}'.format(HCB_COUNTER), 'startdisplay': ('none' if node['starthidden'] else 'block'), 'label': node.get('label')}
 divheader = '<p><strong><a href="javascript:showhide(document.getElementById(\'{divname}\'))">{label}</a></strong></p><div id="{divname}" style="display: {startdisplay}">'.format(**fill_header)
 code_block = (((js_showhide + divheader) + code_block) + '</div>')
 self.body[(-1)] = code_block
 raise nodes.SkipNode

def visit_hcb_html ( self , node ) : global HCB_COUNTER HCB_COUNTER += 1 try : self . visit_literal_block ( node ) except nodes . SkipNode : pass code_block = self . body [ ( - 1 ) ] fill_header = { 'divname' : 'hiddencodeblock{0}' . format ( HCB_COUNTER ) , 'startdisplay' : ( 'none' if node [ 'starthidden' ] else 'block' ) , 'label' : node . get ( 'label' ) } divheader = '<p><strong><a href="javascript:showhide(document.getElementById(\'{divname}\'))">{label}</a></strong></p><div id="{divname}" style="display: {startdisplay}">' . format ( ** fill_header ) code_block = ( ( ( js_showhide + divheader ) + code_block ) + '</div>' ) self . body [ ( - 1 ) ] = code_block raise nodes . SkipNode
visit hidden code block .