Emacs

Dump the damn Vignette-Editor and edit your (Tcl)-Vignette-templates within the coolest editor.

Emacs (the Editor for middle-aged computer-scientists) is the only real editor and more or less an attitude of live :-)

StS-Mode

A mode for Vignette and Tcl-Templates formerly known as StoryServer. Due to political correctness it was NOT named SS-mode.

This mode is useful when using an external (from Vignette’s point of view) editor (that is Emacs – what else?) from the Vignette-Development-Center.
It is useful for mixed-up HTML and Tcl-code (sorry … not useful for JSP) and provides the following features:

  • Syntax-colouring for HTML and Tcl
  • imenu-support for jumping directly to procs, forms, SQL-queries, namespaces, …
  • documentation header and
  • shortcuts for German-umlauts

sts-mode can be downloaded and installed easily. Simply put sts-mode.el into your load-path and add a file-extension to it, so that it gets automatically loaded, e.g.

(autoload 'sts-mode "sts-mode" "StoryServer editing mode" t)
(add-to-list 'auto-mode-alist '("\\.sts$" . sts-mode))
;; or if you dare ".html" (This is the extension provided for external editors)

Furthermore I customized StS-mode like this:

(add-hook 'sts-mode-hook
  '(lambda ()
     (local-set-key [M-j] 'newline-and-indent)
     (local-set-key "\C-ci" 'sts-insert-tag)))

How to get emacs work with Vignette

To work with the Vignette-Client you are bound to a Windows-OS :-) , so
I assume you’re using NT-Emacs.
To avoid starting a new instance of Emacs for every template you should have installed gnuserv.
Then simply go the Vignette-client File->Preferences | Development Center and choose Use an external editor and insert the complete path to gnuclientw.exe.

That’s it!

Example

See the image below for a first impression of the menu’s provided by sts-mode.

emacsvgn

You can see the main-menu which provides entries to insert a standard-template-header or some Vignette-specific items.
The imenu lists the namespaces, COMPONENTS, possible INCLUDES of functions of the template, so that you can jump directly to those items.

References

Teilen oder mailen:
  • Facebook
  • Twitter
  • Digg
  • del.icio.us
  • MisterWong.DE
  • email
  • PDF

Eine Antwort hinterlassen

(erforderlich)

(erforderlich)