packages icon



 JETEDIT(1X)                                                     JETEDIT(1X)




 NAME
      jetedit - a ``C'' programmer's point and click editor.

 SYNTAX
      jetedit [filename]

 DESCRIPTION
      Jetedit is intended to be a programmer's editor, but is usable for
      general purpose editing.  It has a Mac like interface with the <Extend
      char> key replacing the Mac <command> key, and duplicates the common
      Mac editing commands.  Other features it has:

      +    Find and Replace

      +    Goto line number

      +    Tabbing in and out a block of text

      +    Undo multiple edits

      +    Finding matching delimiters

      +    Automatic C syntax sensitive indenting, which can be easily
           configured to suit the style you are used to.

 OPTIONS
      Jetedit recognizes the normal X Windows options such as font and
      geometry.  The only additional option it recognizes is a filename.

 HOW IT WORKS
      The most important feature is that edits can be undone.  The number of
      edits that can be undone is settable via an X resource.  The default
      is to remember the previous 20 edits, using a circular buffer.  Select
      Undo from the Edit menu or type <Ext>Z.  Note that some editing
      functions, such as tabbing a block of text, are remembered as multiple
      edits, so you may need to undo multiple times to completely undo.

      With the exception of undo, all the editing functions work just like a
      Mac.  This includes the existence of a clipboard.  Text cut or copied
      to the clipboard can not only be pasted between editors running on the
      same host, but because of X Windows can also be pasted to an editor
      running on a different host (the XmClipboard is used).

      For non Mac users, a brief explanation:

      +    Holding down the left mouse button and dragging the mouse will
           select a block of text.  For large blocks of text, click the
           mouse at the beginning (or end) of the desired block of text,
           move to the other end of the text, and hold down <Shift> while
           clicking the mouse.  The ends of the selected block can be
           altered by <Shift> clicking again or dragging the mouse while



                                    - 1 -           Formatted:  June 9, 2026






 JETEDIT(1X)                                                     JETEDIT(1X)




           holding down the button.

      +    Copy (from the Edit menu) will copy the selected block of text to
           a ``clipboard'' in memory.  Note that the ``Ext+C'' next to
           ``Copy'' in the menu means that copying can also be done by
           holding down the <Ext> key and typing <C>.  On some keyboards,
           <Ext> may be have some other label such as <Alt>.

      +    Cut will copy the text to the clipboard, and then delete it from
           your document.

      +    Clear (or the <Del> or <Backspace> key) will delete the text from
           the document without altering the clipboard.

      +    Paste will insert a copy of the text from the clipboard to the
           current insertion point.

      +    If a block of text is selected, and then you type a character or
           paste from the clipboard, the selected block is overwritten.  The
           contents of the clipboard are not altered.

      If the cursor is clicked immediately in front of a delimiter ()[]{} ,
      and Match is selected from the Search menu, then the matching
      delimiter will be found.

      An entire block of text can be tabbed in or out by selecting the block
      with the mouse, then typing <Tab> or shift<Tab>.

      Ext<Home> will take you to the beginning of the file.  Shift<Home>
      will take you to the end of the file.

      Selecting Open from the File menu will pop up a File Selection dialog
      box.  The dialog allows traversal up and down through the directory
      structure using the mouse.  Double clicking (clicking the left mouse
      button twice rapidly) on a directory name in the Files area will move
      you down into that directory.  Double clicking on ``..'' will move you
      up one directory.  Double clicking on a filename will open that file.
      Adding something like ``*.c'' in the File Filter window will cause the
      dialog to only display *.c files, for example.

      A number of features intended for programmers are included, and can be
      easily varied to suit the format style you are used to.  They are
      controlled by resources that can be set in your .Xdefaults file or
      with a dialog.  Selecting Preferences from the Edit menu will pop up a
      dialog to allow you to set the preferences.  Then clicking the Help
      button will pop up another dialog which will tell you exactly what
      resources to use for the selected preferences.

      Three indenting modes are available.  Smart indenting will indent a
      new line to the level of the previous line.  Syntax sensitive
      indenting attempts to make intelligent decisions about indenting and



                                    - 2 -           Formatted:  June 9, 2026






 JETEDIT(1X)                                                     JETEDIT(1X)




      outdenting according to the rules of C syntax, and according to a
      number of selectable preferences for indenting style.  You can also
      choose no automatic indenting if desired.

 X DEFAULTS
      The following resources can be put in your ~/.Xdefaults or
      usr/lib/X11/app-defaults/Jetedit file.  Reasonable defaults are
      supplied if no resources are specified.

      background
           I find that an overall background of ``Gray90'' is much easier on
           the eyes than ``White''.

      find_case.set
           Setting this to True will set the default for text searches to
           ignore text case.

      fontList
           It is best to select a fixed width font.  The default is
           ``Fixed''.

      infoFile
           Specifying a filename with a complete path will cause that file
           to be read into jetedit if no filename is specified on the
           command line.  This might be useful for informing users globally
           of updates.

      regular_exp.set
           Setting this to True will set the default for text searches to
           use regular expressions.

      start_at_top.set
           Setting this to True will set the default for text searches to
           begin at the top of the file.

      unselectColor
           This determines the color used to indicate the unselected state
           of the brackets in the preferences dialogs.  A good color is
           ``Gray70''.  It defaults to ``White''.

      The following resources are easiest to determine by selecting
      Preferences from the Edit menu and using the Help dialog to determine
      the correct values to use.

      bufferEntries
           Determines the number of entries in the undo buffer. The default
           is 20.

      indent
           Regular, smart, or C syntax sensitive indenting.




                                    - 3 -           Formatted:  June 9, 2026






 JETEDIT(1X)                                                     JETEDIT(1X)




      leadingTabs
           A boolean determining whether to use spaces or tabs for leading
           tabs.  Leading tabs are tabs which are typed before any non-
           whitespace on a line.

      trailingTabs
           All other tabs are trailing tabs.

      spaces
           Determines how many spaces to insert when a tab is typed if
           either leadingTabs or trailingTabs is False.

      openBrace
           Determines how to indent opening braces.

      closeBrace
           Determines how to indent closing braces.

      indentCase
           A boolean which determines whether to indent case statements from
           the level of the switch statement.

 TRANSLATIONS
      Jetedit defines the following translations for the main editing
      window.

           <Key>Return:         NewLine()
           Shift<Key>Home:      ToBottom()
           Meta<Key>Home:       ToTop()
           Shift<Key>Tab:       OutdentText()
           <Key>Tab:            IndentText()
           :<Key>braceright:    RightBrace()
           :<Key>braceleft:     LeftBrace()

 ACTION ROUTINES
      Jetedit defines the following action routines.

      NewLine()
           When in smart or syntax indenting mode, determines the number of
           tabs or spaces to insert and inserts them.

      ToBottom()
           Moves the cursor to the bottom of the file.

      ToTop()
           Moves the cursor to the top of the file.

      IndentText()
           If a block of text is selected, indents each line in the block
           one tab stop.  Else inserts one tab stop at current cursor
           position.



                                    - 4 -           Formatted:  June 9, 2026






 JETEDIT(1X)                                                     JETEDIT(1X)




      OutdentText()
           If a block of text is selected, outdents each line in the block
           one tab stop.  Else deletes one tab stop at current cursor
           position.

      RightBrace()
           Inserts a right brace, outdenting if appropriate for the selected
           editing style.

      LeftBrace()
           Inserts a left brace, outdenting if appropriate for the selected
           editing style.

      CutItem()
           Copies the selected block of text to the clipboard, then deletes
           it from the text window.

      CopyItem()
           Copies the selected block of text to the clipboard.

      PasteItem()
           Overwrites the selected block of text with the contents of the
           clipboard.

 COPYRIGHTS
      (c) Copyright 1997 by Duane Clark.

      See the jetedit source file copyright.h for a full copyright notice.

 AUTHORS
      Duane Clark - Duane.Clark@jpl.nasa.gov

      Jim Campbell - jec@milne.boeing.com - contributed regular expression
      text searches.

      David W. Sanderson - dws@ssec.wisc.edu - did significant work to
      improve the formatting of the man page.

















                                    - 5 -           Formatted:  June 9, 2026