Creative Training Solutions

Salix Training Limited

This page will describe how to run jEdit and turn on folding.

Using the jEdit editor to edit Shell Scripts

I have written my shell scripts in vi for years. Having recently been on a Java course and used a development environment (fancy editor which understands the rules of your language), I looked for an editor which understood shell scripting syntax and could at least do highlighting and collapsing of function, loops, etc…

 

jEdit comes with Solaris 10 and it can be downloaded just about any OS as it is written in Java.

The jEdit executable can be found in /usr/demo/jds/bin/jedit

www.jedit.org

Phone:    +44 (0)20 8144 6944

Fax:        +44 (0)870 913 0007

jEdit Shell Scripts


Open the Utilities menu and select Global Options...

 

From the editing options, select shellscript and change the File Name Glob if you use extra extensions for your scripts:

When you open a shell script it will recognise it and provide triangles at the side of the screen where you can collapse blocks of code (such as loops and functions). It also highlights variables and commands.

When closing brackets it will show corresponding opening brackets.