Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/usingeup/public_html/textpattern/lib/constants.php on line 149
General error Warning: Cannot modify header information - headers already sent by (output started at /home/usingeup/public_html/textpattern/lib/constants.php:149) on line 5144
General error Warning: Cannot modify header information - headers already sent by (output started at /home/usingeup/public_html/textpattern/lib/constants.php:149) on line 575
usingEuphoria.com: Setup Nano to edit Euphoria code

Setup Nano to edit Euphoria code

Posted

Photo by Taskin Ashiq on Unsplash

Contents

Getting started

Let’s walk through setting up Nano to highlight Euphoria files.

Installation

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?)

Configuration

Download nanorc

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)

Install nanorc

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.

Test nanorc

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.

Author
Categories Beginner, Linux