Notepad/en: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
(Weiterleitung nach Tools Notepad/en erstellt)
Markierung: Neue Weiterleitung
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
#redirect [[Tools_Notepad/en]]
== Introduction ==

Workspaces (notepads) are simple text-editor windows. These can be used to prepare or inspect test-data, texts and similar. They also provide a calculator and scripting-language capability: you can type in an expression (expressed as Smalltalk or JavaScript code fragment) and evaluate it. Finally, they can be used as "PostIt-Note", to remember fragments of text or code.
Workspaces are very useful to compute test-vectors, hex- or binary numbers or to generate string data, which can be copy-pasted into a freeze-value, an attachment or (using the [[Tools FileBrowser/en|file browser]]) into a file.

The following screenshot displays a script-codefragment being evaluated:

[[Datei:Notepad1.png]]

== Multiple Tabs ==
Workspaces support multiple tabs. Click on the "''Add Page''" button or menu function, to get another tab.

== Timer Functions ==
There are also a Stopwatch and an AlarmTimer found in the Tab-Page menu.
Use them for simple measuring tasks, or to get a timed feedback (for example, to get reminded of something to do or check during a long running test-task). The Alarm-Timer can be configured to ring after a time-period or at a final alarm time.

== Snippet Management ==
All text editors inside expecco share a common snippet database. Snippets are little text fragments which can be quickly pasted into any text editor by pressing some abbreviation followed by <kbd>ALT-SPACE</kbd>.
For example, a programmer who often needs the string "self" to be typed in, might want to attach the word "self " to the snipplet-abreviation "s" and get the full string via <kbd>s</kbd>-<kbd>ALT-SPACE</kbd>.
A number of predefined snippets (mostly for programmers) can be found and managed in the snippet manager.
You may want to customize them according to your domain's requirements.

== Collecting Text from Various Places ==
A very common task is to collect text-fragments via copy-paste from various places (such as different input fields of another application) and place them as a single line collection into a freeze-value, attachment or other string-field.
The "Autofetch Selection" feature found in the "Edit" menu does exactly that for you: it monitors the clipboard, and appends every copied string (from any other application) into the workspace's text area.

== Sorting ==
Under the editor's right-button-menu, you will find various items under "''More''" -> "''Tools''" -> "''Sort''".
These operate on the currently selected line-range.
For example, to sort a number of lines, select them, and apply the "Sort Lines" function.

== Generating Unique IDs ==
The right-button-menu also provides a function to generate globally unique IDs (GUIDs or UUIDs).
Try "''More''" -> "''More''" -> "''Insert new UUID''"

== Code Evaluation ==
Workspaces include code interpreters for JavaScript and Smalltalk Code. To evaluate a piece of code, select it, and apply the "''doIt''" (<kbd>CTRL-d</kbd>) menu function. Use "''printIt''" (<kbd>CTRL-p</kbd>) to paste the result.
For example, to compute the square-root of the number 2,
type:
2.sqrt()
apply "''printIt''" (<kbd>CTRL-p</kbd>), to get the result pasted at the current text-cursor position.

The syntax of the interpreter can be changed via the main-menu, or via the right-click-menu in the lower-right syntax indicator field.

== More Features ==
The Notepad editor as described here is a somewhat stripped-down version of the full Smalltalk-Workspace application. You can find even more features (text-filters, variables etc.) in this application, which can be opened programmatically via:
WorkspaceApplication open
or (in JavaScript):
WorkspaceApplication.open()
or by changing the default notepad in the "''Settings''" - "''External Tools''" dialog to "Smalltalk".

----

Back to [[Online_Documentation#Tools | Online Documentation]].

Aktuelle Version vom 26. August 2019, 14:31 Uhr

Weiterleitung nach:



Copyright © 2014-2024 eXept Software AG