/FarColorer

Syntax highlighting plugin for FAR Manager.

Primary LanguageC++MIT LicenseMIT

FarColorer

FarColorer is a syntax highlighting plugin for Far Manager. Build

It only works for (F4)Edit file. (F3)View is not supported, as there is no API. But you can type in the console clr:name_of_file. This launches the built-in viewer colorer.

Downloads

FarColorer is included in Far Manager since 2013 year (about Far build 3.0.3200). So just update Far Manager to get latest stable release of plugin.

Other version you must find in Releases on github. New release is auto-created after create tag in git.

FarColorer has two main verions:

  • 1.3.x - version with Windows XP support. Latest version included in Far Manager 1.3.26 in Far Manager 3.0.5796 (2021.05.09). This version has partial support. See in branch v1.3.x.
  • 1.4.x and higher - current fully supported version, worked only on actual platforms. It included in Far Manager since 3.0.5797 (2021.05.10).

For checking installed version press F9 - Options - Plugins configuration, select FarColorer and press F3.

How to build from source

To build plugin from source, you will need:

  • Visual Studio 2019 or higher
  • git
  • cmake 3.15 or higher

Download the source from git repository:

git clone https://github.com/colorer/FarColorer.git --recursive

Setup vcpkg

cd FarColorer
./external/colorer/external/vcpkg/bootstrap-vcpkg.bat

Build colorer and dependency, if they are not in the local cache:

mkdir build
cd build
cmake -S .. -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE=../external/colorer/external/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -DVCPKG_OVERLAY_PORTS=../external/colorer/external/vcpkg-ports -DVCPKG_FEATURE_FLAGS=manifests,versions -DCOLORER_BUILD_ARCH=x64
farcolorer.sln

For x86 platform use -DVCPKG_TARGET_TRIPLET=x86-windows-static and -DCOLORER_BUILD_ARCH=x86. Once builded, the dependencies will be cached in the local cache.

Links