TestController Definition - Notepad++ syntax highlighting
=========================================================
Version 1.03 - 27-08-2026
Written by Flash2b - username "Flash2b" at EEVblog.com and www.circuitsonline.net
For use with TestController: https://lygte-info.dk/project/TestControllerIntro%20UK.html


WHAT IS IN THIS ZIP
-------------------
userDefineLangs\TestController-Definition Light.xml    syntax colors for a light Notepad++ theme
userDefineLangs\TestController-Definition Dark.xml     syntax colors for a dark Notepad++ theme
autoCompletion\TestController Definition.xml           word and function completion


INSTALL ONE UDL ONLY
--------------------
Both UDL files declare the same language name, "TestController Definition".
That is deliberate - it is what lets the single autoCompletion file work with
either theme. It also means you must install ONE of them, never both. If both
are present Notepad++ will show the language twice and pick one at random.

Choose the file that matches the Notepad++ theme you use.

1. In Notepad++, open  Settings > Import > Import User Defined Language...
   and select either "TestController-Definition Light.xml" or "TestController-Definition Dark.xml".

2. Close and restart Notepad++.

3. Copy "autoCompletion\TestController Definition.xml" into the autoCompletion
   folder of your Notepad++ installation:

     %AppData%\Notepad++\autoCompletion\

   Create the folder if it does not exist. Do not rename this file - the name
   has to match the language name exactly or completion will not load.

4. Restart Notepad++ again.

5. Open a definition file and pick  Language > TestController Definition.


MANUAL INSTALL
--------------
If you prefer to copy the files yourself instead of using the import dialog,
put the chosen UDL file in:

     %AppData%\Notepad++\userDefineLangs\

and the autoCompletion file in:

     %AppData%\Notepad++\autoCompletion\

Restart Notepad++ afterwards.


UPGRADING FROM AN EARLIER VERSION
---------------------------------
Delete the old language first, otherwise the old colors stay active.

     Language > User Defined Language > Define your language...
     pick the old entry in the "User language" dropdown, press Remove.

Then close Notepad++, delete any leftover file in %AppData%\Notepad++\
userDefineLangs\ that belongs to the old version, and install as above.


TURNING ON AUTO-COMPLETION
--------------------------
     Settings > Preferences > Auto-Completion
     tick "Enable auto-completion on each input"
     choose "Function and word completion"

Function hints appear on "(" and close on ")".


NOTES
-----
- Definition files have no fixed extension, so no file extension is bound to
  the language. Select it by hand from the Language menu the first time.
- Folding is available on if / while / foreach blocks, and on #metadef ... #meta
  blocks. "for ... endfor" is deliberately not folded: Notepad++ matches folding
  keywords inside longer words, and "for" would break the coloring of
  formatDouble, formatSI, :format: and the other format* names.
- The version is also visible inside Notepad++ itself: the token
  UDL_v1.03_written_by_Flash2b is highlighted as a keyword, so you can paste it
  in a file to confirm which version is installed.
- Colors are a starting point. Change any of them in
  Language > User Defined Language > Define your language...


FEEDBACK
--------
Post in the TestController thread on EEVblog.com, or contact Flash2b there.
