Syntax highlight instructions for FreeCommander Viewer

Discussion, questions and support.
Post Reply
Message
Author
User avatar
danpeig
Posts: 11
Joined: 12.10.2020, 23:55
Contact:

Syntax highlight instructions for FreeCommander Viewer

#1 Post by danpeig » 24.10.2020, 17:27

Dear friends,

I compiled a set of instructions to configure the FreeCommander to display text files/source code with syntax highlight from the built in viewer. This relies on the converter feature and uses the excellent Highlight software from Andre Simon.
  1. Download and install Highlight converter from http://www.andre-simon.de/ Note: If you are using FreeCommander 32-bit you can still download and use the 64-bit version of Highlight. Note 2 - Portable FreeCommander: Download the ZIP file and unpack to [FreeCommander_Path]/Plugins/Highlight .
  2. Inside FreeCommander go to Tools->Settings->Viewer->Viewer(button)->Converter
  3. Add a new converter with the following settings:
    • Filter:

      Code: Select all

      .html.htm.md.xml.asp.aspx.bash.bsh.c.cc.cpp.cs.css.cxx.f.f2k.f90.f95.for.go.h.hh.hpp.hxx.ini.java.js.jsx.jsm.json.jsp.less.lua.m.manifest.mm.pas.php.php3.php4.php5.phps.phpt.phtml.pl.pp.ps1.py.ruby.rs.r.sass.sh.sql.tcl.tex.ts.txt.vb.vbs.vcproj.vcxproj.vsprops
      You add add more extensions later.
    • Program: Path to highlight.exe (typically "C:\Program Files\Highlight\highlight.exe") . Note: If you are using the portable version, use the following path syntax: %FCSrcPath%\Plugins\Highlight\highlight.exe
    • Parameters:

      Code: Select all

      -i "%ConvertSourceFile%" -o "%ConvertTargetFile%" -s "base16/bright" -l
      You can set a different theme later according to your own preferences.
    • Extension: .highlight Note: Do not use any common extension name because this can cause conflicts with other viewers.
  4. Save the new converter settings.
  5. Inside FreeCommander go to Tools->Settings->Viewer->Viewer(button)->General
  6. Add the .highlight extension name to the Internet/Office list. The final result should be something like this ".highlight.htm.html.xml.xsl..."
  7. Save the settings
  8. Open any supported code file with the internal viewer (the extension should be listed in the filter above). IMPORTANT! If the code does not show with highlight, make sure you enabled the "Show converted file" setting from the View menu inside the viewer window.
  9. To display code with highlight from the Quick Viewer you can go to Tools->Settings->Viewer and enable the "Use same settings for viewer and quick viewer" option.
Image

Image

Image

Image

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests