# ADL support for IDEs

**URL:** https://discourse.openehr.org/t/adl-support-for-ides/743
**Category:** Text Editors
**Tags:** adl
**Created:** [30 May 2020 11:53 UTC](https://discourse.openehr.org/t/adl-support-for-ides/743 "2020-05-30T11:53:43Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![joostholslag](https://discourse.openehr.org/user_avatar/discourse.openehr.org/joostholslag/32/1981_2.png) [@joostholslag](https://discourse.openehr.org/u/joostholslag)
#### Post date: [30 May 2020 11:53 UTC](https://discourse.openehr.org/t/adl-support-for-ides/743/1 "2020-05-30T11:53:43Z")

</div>

Hi all, I would like ADL support in Sublime. Especially color support, syntax checking and auto complete. Came across this: [Language Servers](https://microsoft.github.io/language-server-protocol/implementors/servers/) this would make a potential implementation availabe to lots of IDE’s.  
Do other people have the same wish? I can’t build it myself unfortunately (lack of dev skills). Would anybody be interested in building this? @pieterbos maybe?  
Since you’ve built something like this for our custom archetypeditor:

 ![image](https://discourse.openehr.org/uploads/default/original/1X/203b6aecebf4836314fb48cae68699124c9b1b79.png)

---

<div class="post-metadata">

### Author: ![ian.mcnicoll](https://discourse.openehr.org/user_avatar/discourse.openehr.org/ian.mcnicoll/32/4430_2.png) [@ian.mcnicoll](https://discourse.openehr.org/u/ian.mcnicoll)
#### Post date: [30 May 2020 15:30 UTC](https://discourse.openehr.org/t/adl-support-for-ides/743/2 "2020-05-30T15:30:13Z")

</div>

There used to be a few ADL syntax colorisers listed on the website, but I can’t see these now. @thomas.beale - did we keep these from the old website?

For info there is also an AQL syntax coloriser at [https://github.com/ehrscape/examples/tree/master/util/aql-format](https://github.com/ehrscape/examples/tree/master/util/aql-format)

---

<div class="post-metadata">

### Author: ![pieterbos](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pieterbos/32/512_2.png) [@pieterbos](https://discourse.openehr.org/u/pieterbos)
#### Post date: [30 May 2020 19:58 UTC](https://discourse.openehr.org/t/adl-support-for-ides/743/3 "2020-05-30T19:58:31Z")

</div>

I have an ADL 2 syntax highlighting mode for the javascript-based ACE editor that I can share if there’s any interest.

---

<div class="post-metadata">

### Author: ![thomas.beale](https://discourse.openehr.org/user_avatar/discourse.openehr.org/thomas.beale/32/35_2.png) [@thomas.beale](https://discourse.openehr.org/u/thomas.beale)
#### Post date: [31 May 2020 11:25 UTC](https://discourse.openehr.org/t/adl-support-for-ides/743/4 "2020-05-31T11:25:35Z")

</div>

There’s a whole stack of editor syntax highlighters, [right here on the wiki](https://openehr.atlassian.net/wiki/spaces/dev/pages/6553628/ADL+Text+Editors). @pieterbos - feel free to pin your ACE mode there.

ADL is also a [mode I added to Pygments syntax highlighter project](https://github.com/pygments/pygments/blob/master/pygments/lexers/archetype.py), which is how ADL gets colourised in the openEHR specifications - this might be useful for any other tools that use Pygments.

---

<div class="post-metadata">

### Author: ![birger.haarbrandt](https://discourse.openehr.org/user_avatar/discourse.openehr.org/birger.haarbrandt/32/24_2.png) [@birger.haarbrandt](https://discourse.openehr.org/u/birger.haarbrandt)
#### Post date: [31 May 2020 17:57 UTC](https://discourse.openehr.org/t/adl-support-for-ides/743/5 "2020-05-31T17:57:48Z")

</div>

Would be great if anyone had a AQL syntax highlighting 🙂

---

<div class="post-metadata">

### Author: ![ian.mcnicoll](https://discourse.openehr.org/user_avatar/discourse.openehr.org/ian.mcnicoll/32/4430_2.png) [@ian.mcnicoll](https://discourse.openehr.org/u/ian.mcnicoll)
#### Post date: [31 May 2020 20:33 UTC](https://discourse.openehr.org/t/adl-support-for-ides/743/6 "2020-05-31T20:33:27Z")

</div>

> [@ian.mcnicoll](#):
>
> For info there is also an AQL syntax coloriser at [examples/util/aql-format at master · ehrscape/examples · GitHub](https://github.com/ehrscape/examples/tree/master/util/aql-format)

You might be able to adapt this from Better.

---

<div class="post-metadata">

### Author: ![birger.haarbrandt](https://discourse.openehr.org/user_avatar/discourse.openehr.org/birger.haarbrandt/32/24_2.png) [@birger.haarbrandt](https://discourse.openehr.org/u/birger.haarbrandt)
#### Post date: [1 June 2020 07:23 UTC](https://discourse.openehr.org/t/adl-support-for-ides/743/7 "2020-06-01T07:23:23Z")

</div>

Ah cool, “overread” this 🙂

---

<div class="post-metadata">

### Author: ![pieterbos](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pieterbos/32/512_2.png) [@pieterbos](https://discourse.openehr.org/u/pieterbos)
#### Post date: [2 June 2020 14:58 UTC](https://discourse.openehr.org/t/adl-support-for-ides/743/8 "2020-06-02T14:58:57Z")

</div>

I did a little test, and with a language server one could do things like syntax validation, code completion, validation errors, document outlines and quite a lot more. As in full IDE support for archetypes without actually writing an IDE.

I have a very very small prototype that does rough document outlines for an archetype, plus it shows ADL syntax errors in the editor. If anyone is interested in actually doing this, send me a message and I can open source the code.

What a language server cannot currently do however, is highlighting code 🙂

 ![Screenshot 2020-06-02 at 16.50.34](https://discourse.openehr.org/uploads/default/original/1X/3a5226dcd0823a7c0f535ac4f23fb5a8672af444.png)
