MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / set_auto_highlight

Method set_auto_highlight

python/basicblock.py:605–617  ·  view source on GitHub ↗

``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')

Source from the content-addressed store, hash-verified

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 """

Callers 2

find_instrFunction · 0.80
avoid_instrFunction · 0.80

Calls 1

_to_core_structMethod · 0.95

Tested by

no test coverage detected