title: How to automatically color lines in IDA?
body: <p>I want IDA to automatically color lines in both the graph and text view for important instructions, for example wherever there is a <code>call</code> or <code>xor</code> instruction change the background color of each of those references to a certain color.</p>
  
  <p>Here is what I am looking to achieve:</p>
  
  <p><a href="https://i.stack.imgur.com/Uy0Gp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uy0Gp.png" alt="enter image description here"></a></p>
  
  <p><em>fig.1 graph view</em></p>
  
  <p><a href="https://i.stack.imgur.com/YRQAb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YRQAb.png" alt="enter image description here"></a></p>
  
  <p><em>fig.2 text view</em></p>
  
  <p>I noticed you can go to <code>Edit &gt; Other &gt; color instruction...</code> from the main menu and this will allow you to change the background color of the selected instruction, but this does not change all of them and seems to only affect the current database.</p>
  
  <p>How can I make IDA automatically color certain instructions such as <code>call</code> and <code>xor</code>as shown from the example images?</p>
  
  <p>I want it to automatically work for any database I open.</p>