# Remember variable names in syntax highlighting

**URL:** <https://forum.sublimetext.com/t/remember-variable-names-in-syntax-highlighting/59693>\
**Category:** Plugin Development\
**Created:** [July 15, 2021, 4:38pm UTC](https://forum.sublimetext.com/t/remember-variable-names-in-syntax-highlighting/59693 "2021-07-15T16:38:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daftscience](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/daftscience/32/60800_2.png) [@daftscience](https://forum.sublimetext.com/u/daftscience)\
**Post date:** [July 15, 2021, 4:38pm UTC](https://forum.sublimetext.com/t/remember-variable-names-in-syntax-highlighting/59693/1 "2021-07-15T16:38:33Z")

</div>

I’m not sure if this is possible. But I’m developing some syntax highlighting for a custom programming language and I’m wondering if it’s possible to identify variables names based on their declaration and then to remember to highlight them later.

```
declare SomeVariable = vc
set SomeVariable = "Hello"

... Later in the code....
SomeOtherSariable = SomeVariable + " World!"

```

Is there a way to make the syntax remember that **SomeVariable** is a variable and highlight it later?

I have a few other instances where something like this would be helpful, I’m just not sure how to accomplish it.

---

<div class="post-metadata">

**Author:** ![rwols](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/r/919ad9/32.png) [@rwols](https://forum.sublimetext.com/u/rwols)\
**Post date:** [July 15, 2021, 5:54pm UTC](https://forum.sublimetext.com/t/remember-variable-names-in-syntax-highlighting/59693/2 "2021-07-15T17:54:21Z")

</div>

No, this is not possible.
