News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

SETEdit

From FrugalWiki

Jump to: navigation, search


Contents

SETEdit

SET's Editor, a friendly text editor

It has an intuitive interface built in Turbo Vision with useful features for programmers : class browser, word completion, code pages, calculator, ASCII chart, export syntax highlighted HTML.

SETEdit about info

Features

  • SETEdit syntax highlighting sample
    Syntax highlighting ( own rudimentary rules )
  • User commands ( Small macro language based on Lisp )
  • User defined key bindings

Installation

Root terminal 48px.png
# pacman-g2 -S setedit


Documentation

  • Built-in context-sensitive help system using InfView ( Also accessible from outside as info page. )

Macros

SETEdit can handle two kind of macros :

  • Pseudo macros - Actually they are called code snippets in other editors. They support placeholders and can execute sLisp macros too.
  • sLisp macros - Scripts executed by an embedded interpreter. The API allows simple manipulation of the edited document.

sLisp macros

Tool&Ops > Options > Keyboard > Key assignment

They are stored in a macros.slp file in any of the configuration locations. Running a macro can be done from the Macro | Choose command, using a dedicated menu command, if one was defined in a menubind.smn file or using a key combination if one was bound in a macros.slp file or with the Tool&Ops | Options | Keyboard | Key assignment command.

Move line up

(defmacro "MoveLineUp"
  (eval
    (setv "pos" (GetCursorX))
    (SendCommands cmcMarkLine)
    (setv "line" (GetSelection))
    (SendCommands cmcDelLine cmcLineUp)
    (InsertText line)
    (SendCommands cmcLineUp)
    (SetCursorXY pos)
  )
)

Move line down

(defmacro "MoveLineDown"
  (eval
    (setv "pos" (GetCursorX))
    (SendCommands cmcMarkLine)
    (setv "line" (GetSelection))
    (SendCommands cmcDelLine cmcLineDown)
    (InsertText line)
    (SendCommands cmcLineUp)
    (SetCursorXY pos)
  )
)

Links

Personal tools
Namespaces
Variants
Actions