Xcoral Text Editor for Unix users.

Xcoral is a multiwindow mouse-based text editor for Unix and X Window System. Syntax highlighting and auto-indentation are available. A built-in browser enables you to navigate through C functions, C++ and Java classes, methods and files. Colors syntax and indentation facilities are also available for the popular languages LaTeX, Python, Javascript, Php.

A SMall Ansi C Interpreter (Smac) is also built-in to dynamically extend the editor's possibilities (user functions, key bindings, modes etc). Examples can be found in the source directory SmacLib, or in install directory /usr/local/lib[64]/xcoral. Xcoral provides regions and marks, kill-buffers, macros system and unlimited undo. A usefull Edir mode window helps you to navigate through directories and to do some operations on files.

Xcoral 4.02.8 is the latest and clean release (May 5, 2025). It was developped and tested, first on Linux system with GNU gcc compiler. Xcoral has been written on the top of Xlib and may be compiled on other Unix systems (*BSD, Solaris, Hpux, Aix, MacOS X etc...). Now this new release only uses TrueType and OpenType fonts. Xcoral is distributed on the Internet under the terms of the GNU General Public License as published by the Free Software Foundation.

Download here: xcoral-4.02.8.tar.gz

Install:
The Xcoral package contains all sources and documentation files. Just extract the contents of the tar file with the following command. Be carrefull, some web navigators uncompress automaticaly gz archive file when download it. In this case use tar xf.

Go to the xcoral-4.02.8 sub-directory to compile and install. The default install directories are /usr/local/bin and /usr/local/lib/xcoral, supposing you can be root, else look at README file to change it. When finished see below the subsection Fonts.

Linux:
Before compile the software you need to verify X11 headers and Xft package are present then install them if necessary. The same with gcc and make. OpenSuSE distribution provides a good graphical packages installer to do the job. Else use the following commands on other distributions:

Then compile and install:

Xcoral has been tested with OpenSuSE Leap 15.1 with kwin_x11 (focus under mouse), Ubuntu 20.24 and Fedora 39. All works fine.

MacOS:
Xcoral also runs on macOS (Intel) but you need to install some packages before. First install 2.8.4 XQuartz (www.xquartz.org) and commands-tools for macOS to get gcc and make. Then look at https://brew.sh and install it. Verify X11 headers are present and also Xft library else to install these packages use brew. And finally to compile and install xcoral use the following commands:

I used xcoral with 2.8.4 XQuartz release on a macbook without problem.
Be carrefull with the XQuartz input and pastboard options, by default nothing is selected for input options, leave it like this.
And Pasteboard options: all must be selected.

Xcoral has been tested with success on a macbook with 12.7.4 Monterey MacOS. It would be interresting to install the free tool MiddleClick to get paste function with 3 fingers on Trackpad.

FreeBSD:
FreeBSD Make does not recognize some GNU Make automatic variables, so use gmake (pkg install gmake). I will fixe the problem later with a FreeBSD BSDmakefile. For now use the following commands:

Fonts
Xcoral only uses the following fonts. These four files are included in this distribution (Fonts directory). At the end of compile process a script is executed to check and install them if necessary for the current user (not root).

If you need these fonts to be available system-wide, you'll need as root user to copy the missing fonts to /usr/local/share/fonts and rebuild the font cache with the following command: sudo fc-cache -f

Send bugs-reports or suggestions to xcoral@free.fr (or to lionel.fournigault@free.fr)