``set_auto_instr_highlight`` highlights the instruction at the specified address with the supplied color .. warning:: Use only in analysis plugins. Do not use in regular plugins, as colors won't be saved to the database. :param int addr: virtual address of the instruction to be highlighted
( self, addr: int, color: Union['_highlight.HighlightColor', HighlightStandardColor], arch: Optional['architecture.Architecture'] = None )
| 2596 | return _highlight.HighlightColor(color=HighlightStandardColor.NoHighlightColor) |
| 2597 | |
| 2598 | def set_auto_instr_highlight( |
| 2599 | self, addr: int, color: Union['_highlight.HighlightColor', HighlightStandardColor], |
| 2600 | arch: Optional['architecture.Architecture'] = None |
| 2601 | ): |
| 2602 | """ |
| 2603 | ``set_auto_instr_highlight`` highlights the instruction at the specified address with the supplied color |
| 2604 | |
| 2605 | .. warning:: Use only in analysis plugins. Do not use in regular plugins, as colors won't be saved to the database. |
| 2606 | |
| 2607 | :param int addr: virtual address of the instruction to be highlighted |
| 2608 | :param HighlightStandardColor|highlight.HighlightColor color: Color value to use for highlighting |
| 2609 | :param Architecture arch: (optional) Architecture of the instruction if different from self.arch |
| 2610 | """ |
| 2611 | if arch is None: |
| 2612 | arch = self.arch |
| 2613 | if not isinstance(color, HighlightStandardColor) and not isinstance(color, _highlight.HighlightColor): |
| 2614 | raise ValueError("Specified color is not one of HighlightStandardColor, _highlight.HighlightColor") |
| 2615 | if isinstance(color, HighlightStandardColor): |
| 2616 | color = _highlight.HighlightColor(color=color) |
| 2617 | core.BNSetAutoInstructionHighlight(self.handle, arch.handle, addr, color._to_core_struct()) |
| 2618 | |
| 2619 | def set_user_instr_highlight( |
| 2620 | self, addr: int, color: Union['_highlight.HighlightColor', HighlightStandardColor], |
no test coverage detected