def keyboard_role(name, rawtext, text, lineno, inliner, options={}, content=[]):
 new_element = nodes.literal(rawtext, text)
 new_element.set_class('kbd')
 return ([new_element], [])

def keyboard_role ( name , rawtext , text , lineno , inliner , options = { } , content = [ ] ) : new_element = nodes . literal ( rawtext , text ) new_element . set_class ( 'kbd' ) return ( [ new_element ] , [ ] )
this function creates an inline console input block as defined in the twitter bootstrap documentation overrides the default behaviour of the kbd role *usage:* :kbd:<your code> *example:* :kbd:<section> this code is not highlighted .