``set_auto_highlight`` highlights the current BasicBlock 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 HighlightStandardColor or HighlightColor color: Color value to use for highlighting
(self, color: '_highlight.HighlightColor')
| 603 | core.BNFreeDisassemblyTextLines(lines, count.value) |
| 604 | |
| 605 | def set_auto_highlight(self, color: '_highlight.HighlightColor') -> None: |
| 606 | """ |
| 607 | ``set_auto_highlight`` highlights the current BasicBlock with the supplied color. |
| 608 | |
| 609 | .. warning:: Use only in analysis plugins. Do not use in regular plugins, as colors won't be saved to the database. |
| 610 | |
| 611 | :param HighlightStandardColor or HighlightColor color: Color value to use for highlighting |
| 612 | """ |
| 613 | if not isinstance(color, HighlightStandardColor) and not isinstance(color, _highlight.HighlightColor): |
| 614 | raise ValueError("Specified color is not one of HighlightStandardColor, HighlightColor") |
| 615 | if isinstance(color, HighlightStandardColor): |
| 616 | color = _highlight.HighlightColor(color) |
| 617 | core.BNSetAutoBasicBlockHighlight(self.handle, color._to_core_struct()) |
| 618 | |
| 619 | def set_user_highlight(self, color: '_highlight.HighlightColor') -> None: |
| 620 | """ |
no test coverage detected