SublimeViewer
Syntax highlighting of text files in the Lister using Sublime Text syntaxes and themes
- Type
- Lister (WLX)
- Version
- 1.0.0.18
- Files
- TXT, MD, JSON, XML, HTML, CSS, JS, PY …
Open a plugin zip in Total Commander (Enter) and it installs the plugin itself. Each plugin comes in both 32-bit and 64-bit versions.
SublimeViewer is a Total Commander Lister plugin that shows text files with syntax highlighting via F3 (Lister) and Ctrl+Q (Quick View). Highlighting rules and colours come from Sublime Text files; syntaxes and colour themes are already included in the package, and more can simply be copied into the plugin folder. It can also show Markdown as a preview, format JSON or XML and display a file as hex.
Features
- The full
.sublime-syntaxformat (version 1 and 2) includingextends,embed,branch_pointand other constructs used by the official Sublime Text 4 packages; regular expressions are evaluated by Oniguruma, the same dialect as in Sublime Text. - Colour themes
.tmThemeand.sublime-color-schemeincludingvar(),color(),blend()and other functions; the theme can be set globally or separately for each language. - The package contains 46 retro themes modelled on old computers, games and systems (Amiga, Atari 800, C64, DOS, Win 95 …) and themes tuned for Markdown.
- Markdown preview (
Tab): headings, emphasis, links, lists, code blocks and tables in the colours of the current theme. - Formatting of JSON, XML, HTML, CSS and JavaScript for display; the file on disk is not changed.
- Hex view with mouse selection and search for text as well as bytes.
- Highlighting runs in the background, so even a large file appears immediately. The language is detected by extension or by the first line (shebang).
- The encoding is detected automatically (BOM, UTF-16, UTF-8) and can also be forced (ANSI, OEM, UTF-16 LE/BE).
- The plugin rejects files that are not text, and Total Commander then tries another viewer.
Keys
| Key | Action |
|---|---|
| right click | context menu with all options |
L, T / Shift+T | language, theme / next theme |
F, + / - | font, font size |
H, J, Tab | hex, formatting, Markdown preview |
W, G, I | word wrap, line numbers, status bar |
A / S / V | encoding ANSI / OEM / automatic |
F7, Ctrl+C | search, copy selection |
Regular expressions are handled by the Oniguruma library (BSD license).
News (in Slovak)
1.0.0.18 – prvé vydanie
Prehliadač textových súborov so zvýrazňovaním syntaxe pre Lister (F3) a Quick View (Ctrl+Q)
v Total Commanderi, 32-bit (.wlx) aj 64-bit (.wlx64).
Syntax a témy
- Plná podpora formátu
.sublime-syntax(verzia 1 aj 2):variables,prototype,include,push/set/pop,embed/escape,branch_point/branch/fail,extendsa ďalšie. Regulárne výrazy vyhodnocuje Oniguruma, rovnako ako Sublime Text. - Farebné schémy
.tmThemeaj.sublime-color-scheme(var(),color(),blend(),hsl()…). - 46 retro tém (Amiga, C64, DOS, Atari, Mac OS, Windows…).
- Markdown témy (Dusk, Ember, Forest, Ocean, Paper, Sky) a téma Ansi pre sekvencie ANSI escape.
- Téma sa dá nastaviť globálne aj podľa syntaxe (Markdown, Action!, C++…).
- Retro syntaxe: Action!, AMOS, Mongoose, Turbo Basic, ZX Basic, TXT-lite.
Zobrazenie
- Náhľad Markdownu (
Tab), voľba sa pamätá pre ďalšie súbory. - Formátovanie JSON, XML, HTML, CSS a JavaScriptu (
J) bez zmeny súboru. - Hex zobrazenie (
H), čísla riadkov, zalamovanie riadkov, stavový riadok. - Výber písma a veľkosti, zmena veľkosti
+/-ajCtrl+koliesko. - Rozpoznanie kódovania (BOM, UTF-16, UTF-8, ANSI, OEM) s ručnou voľbou v menu Encoding.
- Pri veľkých súboroch (nad
MaxHighlightMB) sa súbor len zobrazí, bez zvýraznenia.
Ovládanie
- Kontextové menu pravým klikom (funguje aj v Quick View).
- Výber textu myšou, kopírovanie, označenie všetkého, hľadanie cez dialóg Total Commandera.
- Súbory, ktoré nie sú text, plugin odmietne a Total Commander použije iné zobrazenie.
- Nastavenia sa ukladajú hneď do
lsplugin.ini.