Photo by Taskin Ashiq on Unsplash
Let’s walk through setting up Nano to highlight Euphoria files.
If you’re running Ubuntu, then you should already have Nano. Open a Terminal and type
which nano to verify its installation. If it’s missing, type
sudo apt install nano to install it. (Isn’t Linux easy?)
I have created an updated nanorc file for Euphoria 4.1. This file will add syntax highlighting to Nano.
You can get it on the Downloads page. Here is a direct link: euphoria.nanorc (2kB)
Open Terminal and enter the following commands:
sudo mv Downloads/euphoria.nanorc /usr/share/nano/
sudo chown root:root /usr/share/nano/euphoria.nanorc
The default Nano configuration for Ubuntu will use all
*.nanorc files in the
/usr/share/nano/ directory by default.
Now open a Euphoria file, such
/usr/local/euphoria-4.1.0-Linux-x64/demo/animal.ex, to see the syntax highlighting works correctly.
Thats it! I told you Linux was easy.