# EA Syntax Highlighting in Notepad++

**URL:** <https://feuniverse.us/t/ea-syntax-highlighting-in-notepad/532>\
**Category:** Toolbox\
**Created:** [November 5, 2014, 12:26am UTC](https://feuniverse.us/t/ea-syntax-highlighting-in-notepad/532 "2014-11-05T00:26:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Primefusion](https://feuniverse.us/user_avatar/feuniverse.us/primefusion/32/11_2.png) [@Primefusion](https://feuniverse.us/u/Primefusion)\
**Post date:** [November 5, 2014, 12:26am UTC](https://feuniverse.us/t/ea-syntax-highlighting-in-notepad/532/1 "2014-11-05T00:26:27Z")

</div>

If you’re like me and use Notepad++ for writing up your event files  
you may have wished that there was some sort of highlighting for  
keywords like UNIT, MOVE, etc. Maybe something like this?

![](http://i.imgur.com/aoHrUfQ.png)

Here you go:

## Download:

[Click me](https://dl.dropboxusercontent.com/u/23640880/EA%20Syntax.xml)

## How do I use this?

Steps to import language highlighting file:

1. In Notepad++ go to the ‘Language’ menu and select “Define your language…”
2. In that new menu, select Import
3. Browse to where you’ve stored EA Syntax.xml (The file you downloaded) and select it
4. Notepad++ should say “Import successful.”
5. Close Notepad++ (It needs to reload the necessary internal files which it does when it boots)
6. Reopen Notepad++ and open a file that you want EA syntax highlighting for
7. Go to the ‘Language’ menu and at the bottom of the list select “Event Assembler Syntax”. Done!

Note 1: You’ll need to do step 7 for any file you want EA syntax highlighting on.Note 2: These steps are based off of Notepad++ version 6.6.9. If you have a different version, this process may be different.

After import feel free to tweak the colors and add to it however you want. You get to do your own research for this though 😛

Oh and shoutout to @Crazycolorz5 for the idea

---

<div class="post-metadata">

**Author:** ![Crazycolorz5](https://feuniverse.us/user_avatar/feuniverse.us/crazycolorz5/32/3875_2.png) [@Crazycolorz5](https://feuniverse.us/u/Crazycolorz5)\
**Post date:** [November 5, 2014, 12:50am UTC](https://feuniverse.us/t/ea-syntax-highlighting-in-notepad/532/2 "2014-11-05T00:50:17Z")

</div>

Can I have a screenshot to see how beautiful it looks?

And can we also highlight the default items (e.g. IronSword) if you haven’t added that already?

---

<div class="post-metadata">

**Author:** ![Primefusion](https://feuniverse.us/user_avatar/feuniverse.us/primefusion/32/11_2.png) [@Primefusion](https://feuniverse.us/u/Primefusion)\
**Post date:** [November 5, 2014, 12:51am UTC](https://feuniverse.us/t/ea-syntax-highlighting-in-notepad/532/3 "2014-11-05T00:51:58Z")

</div>

Oops forgot my pic. Added that to the OP.

---

<div class="post-metadata">

**Author:** ![Crazycolorz5](https://feuniverse.us/user_avatar/feuniverse.us/crazycolorz5/32/3875_2.png) [@Crazycolorz5](https://feuniverse.us/u/Crazycolorz5)\
**Post date:** [November 5, 2014, 12:54am UTC](https://feuniverse.us/t/ea-syntax-highlighting-in-notepad/532/4 "2014-11-05T00:54:07Z")

</div>

[![](https://dl.dropboxusercontent.com/s/lbnu1mik23siefl/Screenshot%202014-11-04%2019.53.08.png?dl=1) ](https://dl.dropboxusercontent.com/s/lbnu1mik23siefl/Screenshot%202014-11-04%2019.53.08.png?dl=1)

It looks pretty… (events from ModularBattleDemo).

Still, with default definitions the ugly plaintext will go away, mostly… mmmmm.

---

<div class="post-metadata">

**Author:** ![Hextator](https://feuniverse.us/letter_avatar_proxy/v4/letter/h/f475e1/32.png) [@Hextator](https://feuniverse.us/u/Hextator)\
**Post date:** [November 5, 2014, 4:07am UTC](https://feuniverse.us/t/ea-syntax-highlighting-in-notepad/532/5 "2014-11-05T04:07:17Z")

</div>

nitpick time

wouldn’t it be smart to make something like

“IFEF 0x04 0x02 // If Bordel hasn’t been killed”

into a

“#DEFINE IF\_BORDEL\_ALIVE IFEF 0x04 0x02”

?

e:

TIL discourse allows text prepended with # to look

#like this

while text prepended with \

#will be escaped

---

<div class="post-metadata">

**Author:** ![Primefusion](https://feuniverse.us/user_avatar/feuniverse.us/primefusion/32/11_2.png) [@Primefusion](https://feuniverse.us/u/Primefusion)\
**Post date:** [November 5, 2014, 4:27am UTC](https://feuniverse.us/t/ea-syntax-highlighting-in-notepad/532/6 "2014-11-05T04:27:46Z")

</div>

> [@Hextator](#):
>
> wouldn’t it be smart to make something like

Not for a one shot line of code.  
It it were recurring I’d agree but this is a one-time check.

---

<div class="post-metadata">

**Author:** ![Hextator](https://feuniverse.us/letter_avatar_proxy/v4/letter/h/f475e1/32.png) [@Hextator](https://feuniverse.us/u/Hextator)\
**Post date:** [November 5, 2014, 4:30am UTC](https://feuniverse.us/t/ea-syntax-highlighting-in-notepad/532/7 "2014-11-05T04:30:10Z")

</div>

I would do a define anyway just so the actual code reads cleanly with all the “magic” off in its own section. If you have other stuff like that it can also be convenient to have it all in one place in case you do stuff like changing the character IDs around - all those things will be at the top of the file, readily available for updating.

_cough_ write something else entirely like

“{Bordel}”

then write a script that replaces all such tokens in all source files, be it text, event scripts or other things _cough_
