Skip to main content

Editors

Lore files are plain text, so any editor can open them. This page covers highlighting on code hosts and the editor packages in the Lore repository.

Highlighting on GitHub and GitLab​

Add this line to .gitattributes to highlight .lore files as Markdown:

*.lore linguist-language=Markdown gitlab-language=markdown

Tags render as HTML-like text and the prose as Markdown, which reads well in diffs and pull requests.

Editor packages​

The Lore repository holds editor support. None of it is published yet, so install each package from a checkout, following its README:

  • VS Code and Cursor: highlighting, diagnostics, completion, hover, and a lens that lists the rules that could apply to the open file.
  • Zed: highlighting, diagnostics, completion and hover.
  • Prettier plugin: formats .lore files.
  • Language server: the diagnostics, completion and hover the extensions use, for any editor that speaks the Language Server Protocol.

The language server reports every error and warning by its name in Errors and warnings, on .lore and .loreconfig files alike.

Next steps​