title: Jupyter notebook color different parentheses by different colors
body: <p>I can see the matching parenthesis hightlights green when I hover around them, but is it possible to add additional color syntax to them so that the matching parenthesis have different colors.</p>
  
  <ul>
  <li>Is there any nbextension for that?</li>
  <li>Is there a way to add some code to custom.js that will make it happen.</li>
  </ul>
  
  <p>Example code:</p>
  
  <pre class="lang-py prettyprint-override"><code># create new features
  df = (df
   .withColumn(("rooms_per_hh", F.round(col('total_rooms') / col('households'), 2)))
   .withColumn(("pop_per_hh", F.round(col('pop') / col('households'), 2)))
   .withColumn(("bedrooms_per_rooms", F.round(col('total_bedrooms') / col('total_rooms'), 2)))
       )
  </code></pre>
  
  <p>I like to see different colors for different parentheses here.</p>
  
  <p>Related links:<br>
  - <a href="https://stackoverflow.com/questions/39686098/changing-jupyters-matching-parenthesis-color">Changing jupyter&#39;s matching parenthesis color</a><br>
  - <a href="https://stackoverflow.com/questions/45657956/replace-remove-highlighting-in-jupyter-notebook-with-custom-theme">Replace / remove highlighting in Jupyter Notebook with custom theme</a></p>
  
  <p>Required output:
  <a href="https://i.stack.imgur.com/HTKwX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HTKwX.png" alt="enter image description here"></a></p>