editors.dev

Language / Prolog Checked against each editor's own docs

The best editors for Prolog

22 of 41 editors in the directory work with Prolog. 14 give you completion and go to definition. Here is which one to pick, and what each one really does with Prolog.

Section 01 · Short answer

Which one to pick

Four picks read off the ranking below, so they never disagree with it: the most complete setup, the best free one, a lightweight editor and one with AI built in.

Section 02 · The ranking

All 22 editors that work with Prolog

Filter the editor list Filter the IDE list

Best first. Setups with completion and go to definition lead, then editors made for Prolog, then how much of refactoring, debugging and tests each one gives, then how the support arrives. Every row is checked against the editor's own docs.

  • Built in The support ships with the editor.
  • Official extension An extension by the editor's maker or the language's own project.
  • Community extension A third-party extension.
  • Highlighting only Colours the code and nothing more.

Showing 22 of 22 · best first

Editors that work with Prolog, best first
Rank Editor Prolog support What it does with Prolog Price More
Full support · completion and go to definition · 14
01 GNU Emacs Editor Official extension Sweep (sweeprolog)

Emacs ships prolog-mode, but opens .pl files in perl-mode by default. Sweep embeds SWI-Prolog in Emacs; its Prolog and C parts come with SWI-Prolog and live in the SWI-Prolog GitHub organisation, and the Emacs package is on NonGNU ELPA (last release September 2024). It adds semantic highlighting, completion, xref navigation, variable renaming, Flymake diagnostics, source breakpoints and a top-level; map .pl to sweeprolog-mode yourself.

Gives
Highlighting · Completion · Go to definition · Refactoring · Debugging
Runs on
Windows · macOS · Linux
Maker
GNU Project
Free Open source
02 VS Code Editor Community extension New-VSC-Prolog

VS Code has no Prolog grammar and opens .pl files as Perl until you install an extension or map the extension yourself. New-VSC-Prolog continues Arthur Wang's VSC-Prolog, unchanged since 2018, with a linter, hover docs, go to definition and references, experimental predicate renaming, formatting and an experimental SWI-Prolog debugger with breakpoints and variable views; it was last updated in March 2025.

Gives
Highlighting · Completion · Go to definition · Refactoring · Debugging · Formatting
Runs on
Windows · macOS · Linux
Maker
Microsoft
Free Open source
03 Eclipse IDE IDE Official extension SPIDER (SICStus Prolog IDE)

SPIDER, made by the SICStus developers, adds semantic highlighting, on-the-fly warnings, go to definition, call hierarchy, predicate and variable refactorings and a source-linked debugger with breakpoints. It works only with SICStus, which is commercial, and its last release, 0.0.79, came out in November 2023. The University of Bonn's PDT plugin for SWI-Prolog is still listed by SWI-Prolog, but its documentation site was unreachable when checked.

Gives
Highlighting · Completion · Go to definition · Refactoring · Debugging
Runs on
Windows · macOS · Linux
Maker
Eclipse Foundation
Free Open source
04 Helix Terminal editor Built in swipl (lsp_server pack)

Helix ships a Prolog tree-sitter grammar and starts SWI-Prolog's community lsp_server pack, which you install with pack_install(lsp_server). Perl also claims .pl files and wins by default, so remove pl from Perl's file types in languages.toml, as the lsp_server README explains. There is no debugger configuration.

Gives
Highlighting · Completion · Go to definition · Refactoring · Formatting
Runs on
Windows · macOS · Linux
Maker
Blaž Hrastnik and Helix contributors
Free Open source
05 Neovim Terminal editor Community extension prolog_ls (lsp_server)

Neovim ships Vim's Prolog highlighting and guesses whether a .pl file is Prolog or Perl from its first line; set g:filetype_pl to fix it. nvim-lspconfig's prolog_ls config runs James Cash's lsp_server pack in SWI-Prolog for diagnostics, completion, go to definition, references, variable renaming and formatting. There is no debugger.

Gives
Highlighting · Completion · Go to definition · Refactoring · Formatting
Runs on
Windows · macOS · Linux
Maker
Neovim contributors
Free Open source
06 Vim Terminal editor Community extension CoC + lsp_server

Vim ships Prolog highlighting and indentation and guesses whether a .pl file is Prolog or Perl from its first line; set g:filetype_pl to fix it. The lsp_server README gives a CoC configuration (listed under Neovim; CoC also runs in Vim 9) that runs the pack in SWI-Prolog for completion, go to definition, references, variable renaming and formatting.

Gives
Highlighting · Completion · Go to definition · Refactoring · Formatting
Runs on
Windows · macOS · Linux
Maker
The Vim project
Free Open source
07 Kate Editor Community extension LSP Client (manual lsp_server config)

Kate highlights Prolog in .pro, .prolog and .dcg files; .pl files open as Perl. The LSP Client has no Prolog preset, but the lsp_server README gives a user server setting that runs the pack in SWI-Prolog for completion, go to definition, references, variable renaming and formatting.

Gives
Highlighting · Completion · Go to definition · Refactoring · Formatting
Runs on
Windows · macOS · Linux
Maker
KDE
Free Open source
08 Cursor AI-first editor Community extension Pure Prolog Language Support

VSC-Prolog and its successor New-VSC-Prolog are not on Open VSX, which Cursor uses. Pure Prolog Language Support is, and runs its own language server written in Prolog under SWI-Prolog for completion, hover, symbols and go to definition and references; it calls itself alpha and was last updated in March 2023. Map *.pl to Prolog, since the built-in Perl support claims it.

Gives
Highlighting · Completion · Go to definition
Runs on
Windows · macOS · Linux
Maker
SpaceXSI (formerly Anysphere)
Free tier, paid plans Free plan; paid plans from $8 to $200 a month
09 Devin Desktop AI-first editor Community extension Pure Prolog Language Support

VSC-Prolog and New-VSC-Prolog are not on Open VSX, which Devin Desktop uses. Pure Prolog Language Support is, and runs its own language server written in Prolog under SWI-Prolog for completion, hover, symbols and go to definition and references; it calls itself alpha and was last updated in March 2023.

Gives
Highlighting · Completion · Go to definition
Runs on
Windows · macOS · Linux
Maker
Cognition
Free tier, paid plans Free plan; Pro $20 and Max $200 a month
10 Kiro AI-first editor Community extension Pure Prolog Language Support

VSC-Prolog and New-VSC-Prolog are not on Open VSX, which Kiro uses. Pure Prolog Language Support is, and runs its own language server written in Prolog under SWI-Prolog for completion, hover, symbols and go to definition and references; it calls itself alpha and was last updated in March 2023.

Gives
Highlighting · Completion · Go to definition
Runs on
Windows · macOS · Linux
Maker
Amazon Web Services (AWS)
Free tier, paid plans Free plan; paid plans from $20 to $200 a month
11 Google Antigravity AI-first editor Community extension Pure Prolog Language Support

VSC-Prolog and its successor New-VSC-Prolog are not on Open VSX. Pure Prolog Language Support is, and runs its own language server written in Prolog (the prolog_lsp pack) under SWI-Prolog for completion, hover, symbols and go to definition and references; it calls itself alpha and was last updated in March 2023. The built-in Perl support claims .pl files, so map *.pl to Prolog in the settings.

Gives
Highlighting · Completion · Go to definition
Runs on
Windows · macOS · Linux
Maker
Google
Free tier, paid plans Free; Google AI Pro is $19.99 a month
12 TRAE AI-first editor Community extension Pure Prolog Language Support

Pure Prolog Language Support is on Open VSX and the Visual Studio Marketplace and runs its own language server written in Prolog under SWI-Prolog; it calls itself alpha and was last updated in March 2023. VSC-Prolog's successor New-VSC-Prolog, which has a debugger, is only on the Visual Studio Marketplace. TRAE's docs do not say whether its store carries either.

Gives
Highlighting · Completion · Go to definition
Runs on
Windows · macOS · Linux
Maker
SPRING (SG) PTE. LTD. (ByteDance)
Free tier, paid plans Free plan; Pro $20 a month, other plans up to $200
13 VSCodium Editor Community extension Pure Prolog Language Support

VSC-Prolog and New-VSC-Prolog are not on Open VSX. Pure Prolog Language Support is, and runs its own language server written in Prolog under SWI-Prolog for completion, hover, symbols and go to definition and references; it calls itself alpha and was last updated in March 2023. The Ciao project's own extension on Open VSX supports only Ciao Prolog.

Gives
Highlighting · Completion · Go to definition
Runs on
Windows · macOS · Linux
Maker
VSCodium community
Free Open source
14 IntelliJ IDEA IDE Community extension PrologCode

The community PrologCode plugin, started as a student project at HEIA-FR, adds highlighting, completion, navigation, background syntax checking and a REPL, but works with GNU Prolog only. Its last release, 2.0.7, came out in October 2025 and is marked compatible with IntelliJ IDEA 2022.2 and later; there is no debugger.

Gives
Highlighting · Completion · Go to definition
Runs on
Windows · macOS · Linux
Maker
JetBrains
Free tier, paid plans Ultimate from $199 the first year or $19.90 a month
Some help · more than highlighting, without both of those · 1
15 Notepad++ Editor Community extension Prolog (SWI) or Prolog (GNU) UDL

Notepad++ opens .pl files as Perl and has only a Visual Prolog lexer, for .pro files, which suits a different dialect. The userDefinedLanguages collection has Prolog (SWI) and Prolog (GNU, by GNU Prolog's author Daniel Diaz) definitions with keyword completion files, both from the early 2010s.

Gives
Highlighting · Completion
Runs on
Windows
Maker
Don Ho
Free Open source
Highlighting only · no completion, no go to definition · 7
16 Geany IDE Highlighting only

Geany 2.1 (July 2025) added a Prolog filetype for .pro and .P files, highlighted with the Visual Prolog lexer and with swipl compile and run commands; .pl files open as Perl. There is no symbol parser, and the LSP Client plugin has no Prolog preset.

Gives
Highlighting
Runs on
Windows · macOS · Linux
Maker
Colomban Wendling and the Geany contributors
Free Open source
17 Kakoune Terminal editor Highlighting only

Kakoune ships Prolog highlighting and indentation for .pl and .P files, though its Perl script also claims .pl. kakoune-lsp has no Prolog preset, but SWI-Prolog's lsp_server pack can be added to its configuration by hand.

Gives
Highlighting
Runs on
macOS · Linux
Maker
Maxime Coste (mawww) and Kakoune contributors
Free Open source
18 TextMate Editor Highlighting only Prolog bundle

The Prolog bundle from the textmate organisation's bundle collection adds highlighting but assigns no file extensions, and .pl files open with the Perl bundle, so choose Prolog from the language menu. It was last updated in 2014 and has no language server.

Gives
Highlighting
Runs on
macOS
Maker
MacroMates Ltd.
Free Open source
19 Zed Editor Highlighting only prolog (Gaspartcho/zed-prolog)

Zed has no Prolog support of its own. The community prolog extension adds a tree-sitter grammar for .pl, .pro and .P files and tasks that run SWI-Prolog; its lsp_server integration has been disabled for stability problems, so there is no completion or navigation.

Gives
Highlighting
Runs on
Windows · macOS · Linux
Maker
Zed Industries
Free tier, paid plans Free; Pro at $10 a month adds hosted AI models
20 Sublime Text Editor Highlighting only Prolog (alnkpa/sublimeprolog)

Sublime Text has no Prolog syntax, and its built-in Perl syntax claims .pl files. The Prolog package from Package Control adds highlighting and a build system but lists only Sublime Text 2 and 3 and has not changed in over a decade. The LSP package has no Prolog entry; lsp_server would have to be configured by hand.

Gives
Highlighting
Runs on
Windows · macOS · Linux
Maker
Sublime HQ Pty Ltd
Paid $99 one-off license with 3 years of updates
21 Pulsar Editor Highlighting only language-prolog + linter-prolog

Pulsar ships no Prolog grammar, and its bundled Perl grammar also claims .pl files. The community language-prolog package adds highlighting and linter-prolog shows errors from swipl or SICStus; there is no completion or language server package.

Gives
Highlighting
Runs on
Windows · macOS · Linux
Maker
Pulsar-Edit community
Free Open source
22 GNU nano Terminal editor Highlighting only prolog.nanorc (galenguyer/nano-syntax-highlighting)

nano ships no Prolog syntax file, and its bundled perl.nanorc claims .pl files. The community galenguyer/nano-syntax-highlighting collection has a prolog.nanorc for .pl and .pro files.

Gives
Highlighting
Runs on
Windows · macOS · Linux
Maker
GNU Project (maintainer Benno Schulenberg)
Free Open source

19 of 41 editors left out: no Prolog support Compare GNU Emacs vs Vim

Section 03 · The language

About Prolog

Prolog is a logic programming language: a program is a set of facts and rules, and running it means asking a query that the system answers by unification and backtracking search. It is defined by an ISO standard and used for symbolic AI, language processing, rule engines and teaching, mostly through SWI-Prolog and a handful of other implementations.

Actively developed First released 1972

Today

The ISO core standard from 1995 is still current, with three technical corrigenda (2007, 2012 and 2017), so the language moves forward through its implementations. The version shown is SWI-Prolog, the most widely used one: 11.0.0, released on 18 November 2026, collected a year of 10.1.x development with generational garbage collection by default, faster tabling, Unicode 17 and a redesigned single-window IDE, and 11.0.1 followed on 24 November 2026. The development series continues as 11.1.x, starting with 11.1.0 on 20 November 2026, with new versions about every one to two weeks. The .pl extension is shared with Perl, so many editors open Prolog files as Perl until told otherwise.

What it is used for

Symbolic AI and expert systems, natural-language processing, rule engines and configuration checking, theorem proving and program analysis, semantic web and graph data, and teaching logic and programming. Known uses include the natural-language pattern matching in IBM's Watson and the TerminusDB graph database, which is written in Prolog.

Official site: swi-prolog.org

Section 04 · Where it came from

History

Alain Colmerauer and Philippe Roussel created Prolog in 1972 at the University of Aix-Marseille, as part of work on processing natural language. It rests on Robert Kowalski's procedural interpretation of Horn clauses: Kowalski, then at Edinburgh, worked with the Marseille group in 1971 and 1972 and is counted among the founders of logic programming, but the language and its first system came from Colmerauer and Roussel. Roussel chose the name, short for "programmation en logique", and the first interpreter was written in Fortran.

David H. D. Warren took Prolog to the University of Edinburgh, where he and Fernando and Luís Moniz Pereira wrote DEC-10 Prolog, the first Prolog compiler, described in 1977. Its "Edinburgh syntax" became the form most later systems follow, and Warren's 1983 abstract machine (the WAM) became the usual way to implement the language. Japan's Fifth Generation Computer Systems project, launched in 1982, built on logic programming and brought Prolog wide attention in the 1980s. ISO/IEC 13211-1, the core standard, was published in June 1995, and a second part on modules followed in 2000.

Jan Wielemaker started SWI-Prolog in 1987 at the University of Amsterdam, naming it after his group, Sociaal-Wetenschappelijke Informatica. It grew into the most widely used free implementation, with a web server, semantic web libraries and its own graphical tools; version 7 added dicts and a separate string type, and the licence changed from LGPL to BSD-2-Clause with 7.3.33 in December 2016. SICStus, GNU Prolog, XSB and Ciao remain in use, and Scryer Prolog (in Rust) and Trealla Prolog (in C) are newer implementations that aim to follow the ISO standard closely.

Section 05 · Versions

Milestone versions

Released Version What it brought
1972 Prolog Colmerauer and Roussel build the first Prolog system in Marseille.
1977 DEC-10 Prolog Warren and the Pereiras' compiler at Edinburgh, the source of the Edinburgh syntax most systems use today.
1987 SWI-Prolog Jan Wielemaker starts SWI-Prolog at the University of Amsterdam.
June 1995 ISO/IEC 13211-1 The ISO standard for the Prolog core, still current; part 2, on modules, followed in 2000.
20 May 2015 SWI-Prolog 7.2.0 First stable release of version 7, with dicts, a separate string type and other extensions developed in the 7.1 series from late 2013.
24 November 2022 SWI-Prolog 9.0.0 Stable release that started the 9.x series.
3 December 2025 SWI-Prolog 10.0.0 Stable release that introduced the new SDL3 and Cairo based backend for the XPCE graphics used by its tools.
18 November 2026 SWI-Prolog 11.0.0 Generational garbage collection by default, faster tabling, Unicode 17, a single-window IDE with themes and an LSP client in PceEmacs, and a Windows ARM64 installer.
24 November 2026 SWI-Prolog 11.0.1 Latest First patch release of the 11.0 series; the current stable version.

5 of 9 shown

Section 06 · Where the facts come from

Sources

Last checked: 30 November 2026 Method

Section 07 · Language index

Neighbouring languages

All 40 languages