colorer / FarColorer

Syntax highlighting plugin for FAR Manager.
MIT License
68 stars 17 forks source link

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:

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:

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