Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change do-file-editor settings to color-code brackets/parentheses/curly-braces to match their "partner"?

    Hi All,

    I believe I had this set up on my old computer, but I may be misremembering it. I would like to set up my do-file editor to match parentheses by color.

    For example, in the code below the braces for the "x" loop are red while the braces for the y loop are green.
    Code:
    foreach xvar of varlist X1 X2 X3 {
         foreach yvar of varlist Y1 Y2 {
                some code
          }
     
         some more code here
    }
    I know that I can set the do-file-editor to highlight matching brackets by bolding and/or italicizing a bracket when its partner is selected, but it would be helpful if they could also be color coded.
    Happy to clarify if my question is not clear.
    Let me know if any of you have been able to figure this out! Thanks!
    Last edited by Daniel Ram; 09 Jul 2024, 09:35.
Working...
X