def __init__(self, blk_idx, parent=None): tagged_text = tag_text(blk_idx, ida_lines.COLOR_MACRO) super(BlockNumberToken, self).__init__(tagged_text, parent=parent) self.blk_idx = blk_idx
def tagged_text(self): return tag_text( super(BlockHeaderLine, self).tagged_text, ida_lines.COLOR_RPTCMT)
def __init__(self, blk_idx, insn_idx, parent=None): prefix_text = "%d.%2d " % (blk_idx, insn_idx) tagged_text = tag_text(prefix_text, ida_lines.COLOR_PREFIX) super(LinePrefixToken, self).__init__(tagged_text, parent=parent)
def tagged_text(self): return tag_text(''.join([item.tagged_text for item in self.items]), ida_lines.COLOR_AUTOCMT)