ela
Contents

ManualEditors

Kate

In the terminalela --spec kate

This setup is written from Kate's handbook, and not tested.

Kate hands a file to a language server by the file's highlighting mode, and Kate has no mode for ela. A small syntax file gives it one, named ela, for *.ela, colouring comments and strings. It goes in ~/.local/share/org.kde.syntax-highlighting/syntax/ela.xml:

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="ela" section="Scripts" extensions="*.ela" version="1" kateversion="5.0">  <highlighting>    <contexts>      <context name="Normal" attribute="Normal Text" lineEndContext="#stay">        <DetectChar char="#" attribute="Comment" context="Comment"/>        <DetectChar char="&quot;" attribute="String" context="String"/>      </context>      <context name="Comment" attribute="Comment" lineEndContext="#pop"/>      <context name="String" attribute="String" lineEndContext="#stay">        <DetectChar char="&quot;" attribute="String" context="#pop"/>      </context>    </contexts>    <itemDatas>      <itemData name="Normal Text" defStyleNum="dsNormal"/>      <itemData name="Comment" defStyleNum="dsComment"/>      <itemData name="String" defStyleNum="dsString"/>    </itemDatas>  </highlighting>  <general>    <comments>      <comment name="singleLine" start="#"/>    </comments>  </general></language>

Then, in Settings, Configure Kate, LSP Client, User Server Settings:

{  "servers": {    "ela": {      "command": ["ela", "--lsp"],      "highlightingModeRegex": "^ela$",      "url": "https://ela.run"    }  }}