Synta 1.5.5 – source code viewer with syntax highlighting (Lister plugin) for Total Commander, 32 and 64 bit

Synta shows source code in Total Commander's Lister (F3) with syntax highlighting, line numbers and an optional minimap. A switch shows minified or messy code formatted – the file itself is never changed. Languages and color schemes are plain text files that anyone can extend. Native, no runtime, nothing to install besides the plugin.

Languages
C, C++, C#, Java, JavaScript, TypeScript, Python, PowerShell, Batch, Shell, SQL, Go, Rust, PHP, HTML (with embedded CSS and JavaScript), Astro, XML, CSS, SCSS/Less, JSON, YAML, TOML, INI, Registry files, Markdown, Diff, Lua, Pascal/Delphi, Visual Basic, Ruby, Kotlin, Swift, AutoHotkey, AutoIt, Makefile, Dockerfile, CMake, EDIFACT, CSV/TSV (every column in its own color) and Synta's own definition files. Files without an extension are recognized by their name (Makefile, Dockerfile) by a #! line or, for Registry exports, by the header; any other text file without an extension is shown as plain text (ExtensionlessText=0 in Synta.ini turns this off).

Features
- Show formatted (Ctrl+B, switch at the top right): JSON, XML, HTML, CSS, SQL and C-like languages pretty-printed; only white space changes.
- Word wrap (W), minimap, line numbers, indent guides, highlighted current line.
- Language picker at the top left, in case a file was recognized wrongly; next to it the encoding picker (UTF-8, UTF-16, Windows and DOS code pages), also in the context menu.
- Select with the mouse (double-click: word, click on a line number: line), copy with Ctrl+C, select all with Ctrl+A.
- URLs (http, https, ftp, www., mailto) are colored as links; Ctrl+click opens one in the default browser or mail program (the pointer turns into a hand while Ctrl is held). In Synta.ini, LinkClick=1 opens links with a plain click and LinkUnderline=1 underlines them.
- Search with Total Commander's Find (F7 / F3), go to line (Ctrl+G).
- Zoom with Ctrl+mouse wheel; selectable font and tab width.
- Printing (File > Print): syntax colors on white paper, with line numbers unless PrintLineNumbers=0 is set in Synta.ini; "Wrap text" and "Fit to page" of Total Commander's print settings are respected. With text selected, the print dialog offers "Selection" and prints only that text (with its original line numbers).
- Text cursor (context menu): the arrow keys move it, Shift selects, Ctrl+arrows jump by word; the buttons can sit on top, in the status bar or be hidden (context menu "Buttons", or Buttons=0 hidden, 1 top, 2 status bar in Synta.ini).
- Light and dark design (automatic like Windows, fixed, or like Total Commander) in the Windows 11 look; color schemes Ayu (Light, Dark, Mirage, Mirage Light), GitHub, Solarized, One, Catppuccin, Gruvbox, Tokyo Night, Rosé Pine and Visual Studio (each in a light and a dark variant).
- Text encodings: UTF-8, UTF-16 (with or without BOM) and legacy code pages (Windows 125x, CP866, CP850, KOI8, Shift-JIS, GBK, Big5, ...), detected automatically and switchable in the context menu (Encoding); DOS text (box drawing characters, umlauts) is recognized as CP437/CP850/CP852/CP866, and NFO, DIZ, ASC and ANS files open as CP437 by default (DetectEncoding=0 turns the guessing off, DefaultCodepage=<number> sets the code page for all other non-UTF-8 files in Synta.ini); files up to 512 MB.
- User interface in English and German (follows the Windows language).

Own languages and color schemes
- Languages\*.lang: one file per language (keywords, comments, strings, ...). Languages\_template.lang explains every key.
- Languages\global.lang: settings for all languages. Links= lists the URL prefixes (http://, https://, www., mailto:, ...) that are colored as links in text, comments and strings; a language can override or empty the key. LinkEnd= sets the characters that end a URL, LinkAfter= (e.g. href=" src=") starts a link right behind such a prefix. Put your own values into Languages\global.user.lang (same format, only the keys you change; it overrides global.lang and an update never touches it). Plain text files (.txt, .log) are shown by Languages\text.lang.
- Themes\*.theme: one file per color scheme; colors as #RRGGBB or #RRGGBBAA, optionally bold / italic.
- Context menu → Open "Languages" folder / Open "Themes" folder. New or changed files are used for the next file Lister opens; errors are shown in the status bar.
- To add to a built-in language, create Languages\<name>.user.lang next to <name>.lang (for example html.user.lang): only the keys you set replace the original values, while word lists, Extensions=, FileNames= and Shebang= are added to; an update never touches these files. To change a built-in language completely, copy its file and set Priority=1 in the copy – an update replaces the built-in files, not your copy.

Detect string
Total Commander only offers Synta the files its detect string matches. Synta builds it from the extensions of all Languages\*.lang files when the plugin is installed (plus files without an extension, which Synta checks itself; .ts and .mts need the MULTIMEDIA term because Total Commander treats them as video). Total Commander allows 2 KB for it; if the extension list gets longer, Synta falls back to "everything except common binary types". To limit Synta to the types you want, edit the string in Configuration → Options → Plugins → Lister plugins → Synta → Configure (or detect= in [ListerPlugins] of wincmd.ini, only with Total Commander closed), for example:
EXT=""|EXT="C"|EXT="H"|EXT="CPP"|EXT="PY"|EXT="JS"|EXT="JSON"|EXT="LANG"|EXT="THEME"|(MULTIMEDIA & (EXT="TS"|EXT="MTS"))

Installation
Open Synta.zip in Total Commander and confirm the installation. Settings are stored in Synta.ini next to the plugin.
JSON and XML are also shown by TreeView (as tree and grid). If both plugins are installed, the one listed first in Configuration → Plugins → Lister plugins opens these files.

Requirements
Total Commander 32 or 64 bit, Windows 10 or 11.

Developer: Ali Naderi – https://digitalent.dev
Freeware: free to use and to pass on unmodified; selling is not allowed.
Color palettes: Ayu by dempfi, GitHub Primer, Solarized by Ethan Schoonover, One (Atom), Catppuccin, Gruvbox by Pavel Pertsev, Tokyo Night by enkia, Rosé Pine, Visual Studio Code (all MIT license).
