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.

What's new

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

Keys

KeyAction
right clickcontext menu with all options
L, T / Shift+Tlanguage, theme / next theme
F, + / -font, font size
H, J, Tabhex, formatting, Markdown preview
W, G, Iword wrap, line numbers, status bar
A / S / Vencoding ANSI / OEM / automatic
F7, Ctrl+Csearch, 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, extends a ďalšie. Regulárne výrazy vyhodnocuje Oniguruma, rovnako ako Sublime Text.
  • Farebné schémy .tmTheme aj .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 + / - aj Ctrl+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.